GridGroupingControl does not refresh properly.

Hi,

When I Refresh() my grid after adding new rows to the datasource. The totals for each grouped item does not refresh.

Regards,
Ram

4 Replies

AD Administrator Syncfusion Team December 6, 2006 04:43 AM UTC

Hi Ram,

Try calling the Reinitialize method to redraw the whole grid. Here is a code snippet

this.gridGroupingControl1.Reinitialize();

Thanks,
Haneef


RR Ram Raja December 6, 2006 03:31 PM UTC

Hi Haneef,

Thanks for the help. The grid now refreshes with newly added data. The only problem is that when I view the data in grouped mode and the groups are expanded. When I add new rows and call gridGroupingControl1.Reinitialize(); The groups collapse. I don’t want the groups to collapse.

Thanks,
Ram


>Hi Ram,

Try calling the Reinitialize method to redraw the whole grid. Here is a code snippet

this.gridGroupingControl1.Reinitialize();

Thanks,
Haneef


AD Administrator Syncfusion Team December 7, 2006 08:58 AM UTC

Hi Ram,

You can try calling:

groupingGrid.Table.TableDirty = true;
groupingGrid.Table.SummariesDirty = true;
groupingGrid.Refresh();

//For Nested Table is there
groupingGrid.GetTable("ChildTableName").SummariesDirty = true;
groupingGrid.GetTable("ChildTableName").TableDirty = true;

before setting the value to see if this makes things to refresh.

Let me know if this helps. If not, please send us a small sample reproducing the issue in it. Sorry for the inconvenience caused.

Best Regards,
Haneef


RR Ram Raja February 15, 2007 09:20 PM UTC

For anybody facing the same problem. The solution is to use BindingList<> instead of using ArrayList or List<> as the datasource to the GGC.

Or you can bing a DataTable as the datasource to the GGC.

Regards,
Ram

Loader.
Up arrow icon