I have a large amount of data in my GridControl. I have a search utility that returns a row index, and I'd like to change the selection to the data representing that row. I have several frozen rows, and so I offset the row number by that amount.
MyTabItemExt is a subclass of the Syncfusion TabItemExt which contains a Syncfusion GridControl.
if (this.CaseTab.SelectedItem is MyTabItemExt) {
MyTabItemExt p = this.CaseTab.SelectedItem as MyTabItemExt;
p.GridControl.Model.Selections.Clear();
p.GridControl.Model.Selections.Add(GridRangeInfo.Row(index + p.GridControl.FrozenRows));
p.GridControl.ScrollInView(new RowColumnIndex(index + p.GridControl.FrozenRows, 0));
}
The selection seems to be working fine. But the problem is, my call to GridControl.ScrollInView() isn't working. What am I doing wrong?