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
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:





22562 Dec 15,2004 02:53 PM UTC Dec 16,2004 07:12 AM UTC WinForms 2
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!


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon