Hallo Telerik Team,
I have a grid with a BindingList<T> as datasource. Whenever I add a new item, the grid gets informed about it automatically. But I also want to have the new item selected and scrolled into view.
So I tried it like this:
radGridView1.CurrentRow = theNewRow;
radGridView1.GridElement.ScrollToRow(theNewRow);
Selecting the new row works fine, but scrolling to it does not work at all. The scrollbar does not move a bit.
But as soon as I click on a column header and apply a sorting order to the grid, everthing works as expected.
Here you can download a small example project to confirm that issue:
(click here and then on the small download button with the green arrow in the middle of the emerging page)
Greetings,
STB
I have a grid with a BindingList<T> as datasource. Whenever I add a new item, the grid gets informed about it automatically. But I also want to have the new item selected and scrolled into view.
So I tried it like this:
radGridView1.CurrentRow = theNewRow;
radGridView1.GridElement.ScrollToRow(theNewRow);
Selecting the new row works fine, but scrolling to it does not work at all. The scrollbar does not move a bit.
But as soon as I click on a column header and apply a sorting order to the grid, everthing works as expected.
Here you can download a small example project to confirm that issue:
(click here and then on the small download button with the green arrow in the middle of the emerging page)
Greetings,
STB