What is the best practice for repeatedly changing the grid's datasource when the structure varies? Should the rows be cleared and the columns list be cleared before resetting the DataSource to a new datatable? Should the DataSource be set to null first?
1 Answer, 1 is accepted
0
Stefan
Telerik team
answered on 19 Jun 2013, 10:02 AM
Hello Tim,
Thank you for writing.
In the straightforward case, you would just need to set the DataSource property of the grid to the new collection. However, if you have specified some columns, templates, relations, you might want to clear those too: