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.

GridGroupingControl does not refresh properly.

Thread ID:

Created:

Updated:

Platform:

Replies:

52871 Dec 5,2006 10:11 AM Feb 15,2007 04:20 PM Windows Forms 4
loading
Tags: GridControl
Ram Raja
Asked On December 5, 2006 10:11 AM

Hi,

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

Regards,
Ram

Administrator [Syncfusion]
Replied On December 5, 2006 11:43 PM

Hi Ram,

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

this.gridGroupingControl1.Reinitialize();

Thanks,
Haneef

Ram Raja
Replied On December 6, 2006 10:31 AM

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

Administrator [Syncfusion]
Replied On December 7, 2006 03:58 AM

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

Ram Raja
Replied On February 15, 2007 04:20 PM

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

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.

;