Disabling sorting for a specific DataGridView column
I am trying to make sure that when sorting any other column, a certain column (let it be column A) is not automatically sorted along with them. Disabling sorting using
DataGridViewColumnSortMode.NotSortable
removes the ability to sort by column A directly, but if others are sorted, the column A is sorted with them.
2 Replies
A fragment from the Designer.cs automade file regarding DataGridView element creation.