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

[Solved] Dynamic grid

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Revathi Panneerselvam
Top achievements
Rank 1
Revathi Panneerselvam asked on 02 Jul 2009, 11:40 AM
In our application we are using server side pagination for grid by using "ObjectDataSourceContainer". Can anyone please tell me how to assign a ObjectDataSourceContainer to "GridTableView" dynamically( runtime, C# code behind).

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 06 Jul 2009, 01:40 PM
Hello Revathi,

You should be able to relate ObjectDataSourceContainer as grid item generator programmatically in the same way as you will do that with regular MS GridView control.

In case you build hierarchy and would like to assign data source at each level, intercept the DetailTableDataBind event of the grid and supply the source for the child tables there:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx

Kind regards,
Sebastian
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
Grid
Asked by
Revathi Panneerselvam
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or