I want to disable sorting for all columns but ,it’s not work
for (int i = 0; i < this.Columns.Count; i++)
{
this.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable;
}
Hi,
issue #2111 is fixed in the latest Wisej build (2.1.22).
Best regards
Frank
Hi HSoft,
The issue has been fixed and will be available in the next development build! We’ll let you know when it’s out.
Best,
Levie
Hi HSoft,
Thanks for reporting the issue. I’ve logged it as #2111.
You can add this line to your code as a temporary workaround:
for (int i = 0; i < dataGridView1.Columns.Count; i++) { dataGridView1.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; dataGridView1.Columns[i].Update(); }
Let me know if this works for you.
Best,
Levie