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

[Solved] How to bind data in generic way

1 Answer 128 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.
Kevin
Top achievements
Rank 1
Kevin asked on 15 Apr 2009, 11:59 PM
I am in the process of evaluating the GridView of Telerik. I have a need to be able to add the columns at runtime dynamically and the same time I need to the bind the data dynamically after columns are added.

Since the grid won't have fix columns, I won't be able just create a hard-code object and bind to it.

Do you have any example to show me how to do it?

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 17 Apr 2009, 12:19 PM
Hi Kevin,

The attached sample application demonstrates a way to add columns to the RadGridView RunTime.
You can rebind the RadGridView anytime setting a new collection to the ItemsSource property.


Best wishes,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or