How to disable datagridview column header to alllow sorting
The easy way to disable the sorting feature by clicking column header is set DataGridViewColumnSortMode to NotSortable.//Disable datagridview column header to allow sorting. for (int i = 0; i