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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

22562 Dec 15,2004 02:53 PM UTC Dec 16,2004 07:12 AM UTC WinForms 2
loading
Tags: GridControl
Rodolphe Billottet
Asked On December 15, 2004 02:53 PM UTC

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?

Administrator [Syncfusion]
Replied On December 15, 2004 03:53 PM UTC

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

Administrator [Syncfusion]
Replied On December 16, 2004 07:12 AM UTC

It works perfectly!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;