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

Dynamically updating the data source

Thread ID:





8697 Nov 17,2003 04:58 PM UTC Nov 17,2003 05:24 PM UTC WinForms 2
Tags: GridControl
Asked On November 17, 2003 04:58 PM UTC

I am trying to change the data source of the data bound grid at run-time, but I can't figure out how. As the code sits right now, instead of clearing and displaying the new data, the grid is appending data every time I change the source. In the User's Guide I read about the virtual grid - should I use this instead? Thanks for your help!

Administrator [Syncfusion]
Replied On November 17, 2003 05:16 PM UTC

Are you calling dataAdapter.Fill repeatedly? If so, this will append the data to the existing data which sort of sounds like what you are seeing. So, make sure you call something like DataTable.Clear before you load the data again into the same table.

Replied On November 17, 2003 05:24 PM UTC

Ok, I'm an idiot. That was the problem.


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