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

[Solved] How to generate column at run time

1 Answer 149 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.
Rajeev
Top achievements
Rank 1
Rajeev asked on 23 Jun 2011, 03:47 PM
Hi i want to generate column at run time. In my condition Column is comming from Interface.
Right now i am using silverlight control and it is working fine following is the code for silverlight control

The following control is for silverlight...

<Data:DataGrid ItemsSource="{Binding ItemsSource}" x:Name="maingrid"

IsEnabled="{Binding IsLoaded}"

AutoGenerateColumns="False"

Foreground="Black"

HorizontalScrollBarVisibility="Disabled" Decorators:DataGridDecorator.Columns="{Binding Columns}" />


Decorators:DataGridDecorator.Columns="{Binding Columns}"  is generating column at run time.

There is any funtionaliy in

 

 

 

 

<telirik:RadGridView  to do the above things......
i am using following version of dll
File Version 2011.1.419.1040
and product version 2011.1.0419.1040



Can you help me

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 28 Jun 2011, 04:45 PM
Hello Rajeev,

You may add a new column on RadGridView's Loaded event, initializing a proper DataMemberBinding. Please, let me know if this approach meets your requirements.

All the best,
Ivan Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Rajeev
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or