Updating GridBoundColumns at runtime

I need to modify the bound columns of a DataBoundGrid at runtime (due to changing the data source binding), but it is not immediately apparent how to achieve this. Attached is a simple example of what I am attempting, several problems can be seen. (some columns are wrong or missing, data is not displayed) What do I need to do to make this work properly?

form13.zip

1 Reply

AD Administrator Syncfusion Team February 28, 2006 07:40 AM UTC

Hi Ben, Set the grid.DataSource to null and change the GridBoundColumns and then set the grid.DataSource to the new data table. Here is the modified sample. Regards, Calvin.

Form1Modified.zip

Loader.
Up arrow icon