Hi,
I'm having this issue with a VirtualDataGridView and a CurrencyManager.
I have a VirtualDataGridView on my form. It has a Table as its DataSource. There are more records, than can be displayed in the grid at once (5788 records). I'm attaching a CurrencyManager like this _cm = (CurrencyManager)this.BindingContext[BO.Table]; where BO is an instance of a class that has the DataTable property called Table in it and does not matter in this case.
When I go to the next record with _cm.Position += 1; it scrolls the grid and selects the next record.
When I go to the last record with _cm.Position = _cm.Count - 1; it selects the last record, but does not scroll the grid.
After I scroll manually to the last record, it then starts to scroll to the last record automatically as well when I do _cm.Position = _cm.Count - 1; and the last record is not visible.
If I add a new record to the Table and try to go to it, that is to go to the last row in the grid like this _cm.Position = _cm.Count - 1; it won't scroll to that row, whether I have scrolled to it manually before or not, but it does select the newly added row.
Is this a bug? How to avoid this?
Thanks,
Alex