AD
Administrator
Syncfusion Team
June 16, 2006 01:27 PM UTC
Hi Prathima,
Try this code to get the all visble records in a groupin grid. Here is a code snippet.
int lastrows = this.gridGroupingControl1.TableControl.ViewLayout.LastVisibleRow;
for(int i = this.gridGroupingControl1.TableControl.TopRowIndex ;i < lastrows ;i++ )
{
Element el = this.gridGroupingControl1.Table.DisplayElements[i] as Element;
if(el.Kind == DisplayElementKind.Record )
{
Console.WriteLine(el.ParentRecord.Info);
}
}
Let me know if this helps.
Best Regards,
Haneef
PV
Prathima Venkobachar
June 19, 2006 04:18 PM UTC
Hi Haneef,
Thank you very much. The solution you provided works perfectly.
Regards,
Prathima