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 < dataGridView1.Columns.Count; i++) { dataGridView1.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; }