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

Dynamic Rows and Columns

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 17 Jun 2013, 03:09 PM
I would like to create my rows and columns dynamically and not use Bind... is that possible?
or how do I dynamically create the List object at runtime, as I don't know the number of columns or what they are going to be called.
I do know the list will consist of one string and any number of int columns... basically, I'm needing to do a pivot and account for gaps so I preferably would like to just fill the grid view via code instead of using Bind.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 20 Jun 2013, 09:04 AM
Hi Kevin,

Please check out the following live example which demonstrates how to programmatically create a RadGrid. Additional information could be found under related resources tab.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or