How to get only displaying records in GridGroupingControl ?

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 ?

1 Reply

AG Anish George Syncfusion Team 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


Loader.
Up arrow icon