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

Changing DataSource of a GDBG after moving column cause display''s problem

Hello, With a GDBG(V2.1.0.9) bound to a DataTable. I have updated the DataSource (new dataTable with different structure) after having moved some columns. The new columns aren''t visible, the old ones are still visible and empty. gridDataBoundGrid1.DataSource = null; gridDataBoundGrid1.DataMember = null; gridDataBoundGrid1.Model.ResetVolatileData(); gridDataBoundGrid1.DataSource = newTable; gridDataBoundGrid1.Refresh(); What can I do to reset the grid before changing the DataSource?

2 Replies

AD Administrator Syncfusion Team December 15, 2004 10:53 AM

Try calling grid.Binder.InitializeColumns to see if this will take care of this problem.


AD Administrator Syncfusion Team December 16, 2004 02:12 AM

It works perfectly!

Loader.
Live Chat Icon For mobile
Up arrow icon