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.

IList

Thread ID:

Created:

Updated:

Platform:

Replies:

22620 Dec 16,2004 09:36 AM Dec 16,2004 11:01 AM Windows Forms 1
loading
Tags: Grouping
Dominic Morris
Asked On December 16, 2004 09:36 AM

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 11:01 AM

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

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.

;