Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Winforms DataGridView losing current sorted grid data when updating sorted column

After sorting data in a DataGridView, I would like to be able to edit a column in a row, and then move to the next item in the same sorted data and edit it, etc. without losing my place in the sorted DataGridView. The current default behavior of the DataGridView is to re-sort the data, which causes the edited column to move to another area of the data. When the grid is not sorted, then the default behavior moves to the next row and the data retains it's current display correctly. Is there any way to tell the DataGridView not to re-sort the data when moving to the next row when the grid is already sorted?

Comments