This is a migrated thread and some comments may be shown as answers.

How to create Template Column in Silverlight Radgridview in code behind

1 Answer 168 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
lakshmi jeeva
Top achievements
Rank 1
lakshmi jeeva asked on 09 Dec 2009, 02:36 PM
Hi,

     I have created only radgridview definition in .xaml as follows

  

<

telerikGrid:RadGridView x:Name="gridview1" Grid.Row="1" ShowColumnFooters="False"

 

 

  AutoGenerateColumns="True"  CanUserSortColumns="True"

 

 

 ScrollViewer.VerticalScrollBarVisibility="Visible" CanUserFreezeColumns="False" ScrollViewer.HorizontalScrollBarVisibility="Visible"

 

 

 ScrollMode="RealTime" ShowGroupPanel="False" >

 

 

 

 

</telerikGrid:RadGridView>

     I want to create dynamically a GridViewDataColumn in code behind and also i have to add cell template and 

 

CellEditTemplate for that dynamically created column. How can i do this?

     Andalso i have to give sorting for that dynamic created GridviewDataColumn. How can i acheive this?

Regards
Lakshmi

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Dec 2009, 02:52 PM
Hello,

 You can use a bit different approach demonstrated here.


Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
lakshmi jeeva
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or