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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Refreshing All Records in a Group

Thread ID:





27560 Apr 14,2005 01:09 PM UTC Apr 14,2005 05:58 PM UTC WinForms 1
Tags: GridControl
Devshi Halai
Asked On April 14, 2005 01:09 PM UTC

Hi, I would like to do a View Refresh of all the records in a particular group instead of doing a ggc.Refresh() as I want to do it more efficiently. I have the GridGroup but how can I find all the view row indexes so that I can get a GridRange together ? Thanks Dev.

Administrator [Syncfusion]
Replied On April 14, 2005 05:58 PM UTC

Here is a rough try at this. It will require tweaking when you are at the last group and maybe in some other cases as well. //given group g Group parentGroup = g.ParentGroup; GridTable table = g.ParentTable as GridTable; int i = parentGroup.Groups.IndexOf(g); int row1 = table.DisplayElements.IndexOf(g); int row2 = table.DisplayElements.IndexOf(parentGroup.Groups[i+1]); this.gridGroupingControl1.TableControl.RefreshRange(GridRangeInfo.Rows(row1, row2)); Console.WriteLine(row1.ToString() + " " + row2.ToString());


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon