bring scroll position to current record

i want to bring scoll bar position to current record in grouping grid control .U had given me follwing idea but still scroll position remains at top.please help me.



You can call

grid.TableControl.ScrollInView(element);

element could be grid.Table.CurrentElement in your case.

1 Reply

HA haneefm Syncfusion Team May 24, 2007 03:03 PM UTC

Hi Swaminath,

You can try setting the GridTableControl.TopRowIndex property to scroll the grid at required position. Below is a code snippet.

int indexX = this.gridGroupingControl1.Table.NestedDisplayElements.IndexOf( currentElement );
this.gridGroupingControl1.TableControl.TopRowIndex = indexX;

Best regards,
Haneef

Loader.
Up arrow icon