I’m trying to implement datagridview’s virtual mode but when i set RowCount to some number (to show the scrollbar) the grid wants to have all rows at once, not only the displayed.
DataGridView grid = new ...;
grid.VirtualMode = true;
grid.CellValueNeeded += OnCellValueNeeded;
grid.RowCount = dataprovider.GetFullCount();
How can i tell the grid to only request the rows displayed?
unfortunatly this seems to be the standard behavior. i could solve it either by
or implementing IBindingList, ITypedList with complex lazy fetching in background thread
Update: the problem seems to be fixed now. I can not reproduce it anymore using the following: