This is a migrated thread and some comments may be shown as answers.
dynamic grid
1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
Zakaria
Top achievements
Rank 1
Zakaria asked on 29 Oct 2018, 03:02 PM
I have to create a grid’s columns dynamically. I followed the following steps:
1 - Create the RadGrid .
2 – Select a table from the database that contains column’s names, types, ...
3 - Create for each column a gridBoundColumn.
4 - Select data corresponding to the selected columns and bind it to the grid.
It’s working fine. My question is : is there a better way to create a dynamic grid ?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 31 Oct 2018, 02:34 PM
Hi Zakaria,

Your approach is OK.

Just for your information, you can find more details on how to build a dynamic RadGrid at Creating a RadGrid Programmatically.

Best regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Zakaria
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or