GridGroupingControl not showing underlying datasource changes

We have a GridGroupingControl that is bound to a collection that implements IBindingList. We bind the data using the following code:

this.grid.Datasource = theCollection;

At various points, we retrieve data from the database and update the underlying collection. We do this by handling the adds, modifies, and deletes since a certain request time, rather than getting all data at once.

Once the underlying collection's changes have been merged in, we call:

this.grid.Refresh();

to show the changes. We've also tried:

this.grid.Update();

However, the grid display doesn't update, even though the underlying datasource (collection) has been updated.

Is there some specific process we are missing to get the grid to display changes?

Thanks,

Bill Richardson


1 Reply

AD Administrator Syncfusion Team March 4, 2008 05:31 PM UTC

Hi Bill,

If your IBindingList supports the interface INotifyPropertyChanged, then the GridGroupingControl should automatically refresh and show the updates.

Please refer to the sample below for more details.
http://websamples.syncfusion.com/samples/Grid.Windows/F72074/main.htm

Please let me know if you have any questions.

Regards,
Srirajan



Loader.
Up arrow icon