I have a DataGridView column header. When I click that header, the data is resorted according to the value.
DataGridView
I don\'t want that.
DataGrid>
You can override OnColumnAdded function:
protected override void OnColumnAdded(DataGridViewColumnEventArgs e) { base.OnColumnAdded(e); e.Column.SortMode = DataGridViewColumnSortMode.NotSortable; }