Reputation: 84922
I have a DataGridView in virtual mode that gets continuously updated by inserting rows at the top of the grid, so that rows appear to "flow down".
How would I keep the behaviour #1 when the grid gets updated while selecting cells?
P. S.
I suppress the scrolling if the top row is out of the view (i.e. scrolling down a few rows) by incrementing DataGridView.FirstDisplayedScrollingRowIndex
each time a new row arrives.
Upvotes: 1
Views: 323
Reputation: 4867
I would try to pinpoint the starting point of the selection and in the CellEnter event ensure only cells filling the rectangle defined by the starting point and the current cell are selected.
Upvotes: 0