We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Add a column to GridDataBoundGrid at runtime?

Some columns are added at runtime to the GridDataBoundGrid, but the last column is never displayed, and data is never filled,i.e., cells are left empty. Its DataSource is a DataTable, of which data is correct, and the number of columns in the Grid is right. Please help me, many thanks!

2 Replies

AD Administrator Syncfusion Team December 11, 2004 12:25 PM UTC

After adding the column to the datasource, try calling grid.Binder.InitializeColumns.


RE Rebecca December 11, 2004 02:07 PM UTC

oh, you are toooooo helpful! Really thanks!

Loader.
Live Chat Icon For mobile
Up arrow icon