aronmatthew
Active member
- Joined
- Aug 5, 2019
- Messages
- 41
- Programming Experience
- Beginner
a very annoying problem when working with datagridview is accidently pressing the column tab which changes the order of the data in the grid. i would very much like to to disable that feature or at least override it with my own sort method. i have tried the following with no effect:
foreach (DataGridViewColumn c in dataGridView1.Columns)
{
column.SortMode = DataGridViewColumnSortMode.NotSortable;
}
foreach (DataGridViewColumn c in dataGridView1.Columns)
{
column.SortMode = DataGridViewColumnSortMode.NotSortable;
}