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


Thread ID:





22620 Dec 16,2004 02:36 PM UTC Dec 16,2004 04:01 PM UTC WinForms 1
Tags: Grouping
Dominic Morris
Asked On December 16, 2004 02:36 PM UTC

If I set the DataSource to an IList, and then change values in the IList, how does the ggrid control known when these changes occur, so that I can redraw accordingly?!

Administrator [Syncfusion]
Replied On December 16, 2004 04:01 PM UTC

Hi Dominic, you need to implement IBindingList and raise ListChanged events. The grid listens to the ListChanged events and will synchronize itsself with the structure accordingly. See the StrongTypedList as an example. If you also specify grid.Engine.InvalidateAllWhenListChanged = false; then the grid will only paint those records that were changed. You could for example do a batch of updates (raising multiple ListChanged events) and then call grid.Update() once the batch of updates is finished. It is important that the ListChanged event is raised right after you made the change to the datasource. It needs to be raised immediately after each change if you perform multiple changes. 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