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.
Unfortunately, activation email could not send to your email. Please try again.

Dynamically updating the data source

Thread ID:

Created:

Updated:

Platform:

Replies:

8697 Nov 17,2003 11:58 AM Nov 17,2003 12:24 PM Windows Forms 2
loading
Tags: GridControl
Christina
Asked On November 17, 2003 11:58 AM

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 12:16 PM

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.

Christina
Replied On November 17, 2003 12:24 PM

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

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.

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.

;