Hi Shachar,
You can handle the GroupExpanded event of the Grid and call the ScrollCellInView method to scroll the expanded record cell into the view. Please find the code snippet below.
private void gridGroupingControl1_GroupExpanded(object sender, GroupEventArgs e)
{
if( e.Group != null && e.Group.Records.Count > 0)
{
Record rec = e.Group.Records[e.Group.Records.Count - 1];
GridTable table = e.Group.ParentTable as GridTable;
int index = table.NestedDisplayElements.IndexOf(rec);
string tName = e.Group.ParentTableDescriptor.Name;
(sender as GridGroupingControl).GetTableControl(tName).UpdateScrollBars();
table.TableModel.ScrollCellInView(GridRangeInfo.Row(index),GridScrollCurrentCellReason.BeginEdit);
}
}
Sample :
GGC_Scroll.zipBest regards,
Haneef