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

GridDataboundGrid - bind a new dataset

Thread ID:





9532 Dec 23,2003 02:39 PM UTC Dec 23,2003 05:36 PM UTC WinForms 2
Tags: GridControl
Rob Garrett
Asked On December 23, 2003 02:39 PM UTC

I need to bind a new, replacement, dataset to a existing DataboundGrid at runtime (the code is not using a DataAdapter). What steps are required? Thanks. Rob

Administrator [Syncfusion]
Replied On December 23, 2003 04:31 PM UTC

Rob, Try to reset the grid first with the following lines. this.gridDataBoundGrid1.DataSource = null; this.gridDataBoundGrid1.Binder.ResetHierarchyLevels(); After that assign the new data source. Stefan

Rob Garrett
Replied On December 23, 2003 05:36 PM UTC

That does it! Thanks Stefan!


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