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

How to get only displaying records in GridGroupingControl ?

Thread ID:

Created:

Updated:

Platform:

Replies:

114254 Nov 8,2013 10:13 AM UTC Nov 18,2013 07:26 PM UTC WinForms 1
loading
Tags: Grouping
Shashi Bhushan Kumar
Asked On November 8, 2013 10:13 AM UTC

Hi,
I am using GridGroupingControl which has hundreds of record, i want to get the records which are displaying currently in the GGC.
How can i achieve this ?

Anish George [Syncfusion]
Replied On November 18, 2013 07:26 PM UTC

Hi Sashi,

 

Thank you for your interest in Syncfusion products.

 

You can use the below code snippet for getting the records which are been currently displayed in the grid.

 

C#:

GridRangeInfo range  = this.gridGroupingControl1.TableControl.ViewLayout.VisibleCellsRange;

int toprowindex = range.Top;

int bottomrowindex = range.Bottom;

object[] ob = new object[bottomrowindex];

int j = 0;

for (int i = toprowindex; i < bottomrowindex; i++)

{

ob[j] = gridGroupingControl1.Table.Records[i].GetData();

j++;

}

 

Please let us know know if you need any further assistance.

 

Regards,

Anish


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.

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

;