GGC automatically picking up changes in the datasource.

Hi Team,

Thanks for all your efforts.

I have a GGC who's datasource is a custom collection class that implements IListSource. I update the values within this collection frequently, and these changes need to be shown in the GGC (so effectively the GGC is a 'live' ticking grid).

Can you please explain how I can reflect the changes in the collection class in my GGC?

I have tried setting the datasource to null and then to the updated collection, but this is very cpu intensive (100% usage). I've also tried the 'Refresh' method but this too is cpu intensive.

Is there any way I can get the GGC to automatically pick up changes in the collection class?

Thanks very much,

Chris Dawson.

1 Reply

AD Administrator Syncfusion Team February 2, 2007 06:19 PM UTC

Hi Chris,

Thank you for being patience.

This can be achieved by triggering the ListChanged event of the grid in fake. For this, the SimulateListChanged method of the Table is called with the corresponding ListChangedEventArgs instance. The following is the sample, please try it and let us know if you need any further assistance.

Sample : http://www.syncfusion.com/Support/user/uploads/TestApp1_Modified_7ee9f840.zip

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,
Madhan

Loader.
Up arrow icon