GridControl ScrollInView not working

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?


1 Reply

PS Pannir Selvam S Syncfusion Team November 20, 2012 05:03 PM UTC

Hi James,

Thanks for using Syncfusion product

We have analyzed the reported issue in different scenario but we are unable to reproduce the issue. Could you please check the attached sample. That sample may be solve your issue.

Please let us know if any other queries.

Thanks,
Pannir



VirtualGridDemo_300d0aa6.zip

Loader.
Up arrow icon