>>8

For Each col As DataGridViewColumn In DataGridView123.Columns
 col.SortMode = DataGridViewColumnSortMode.NotSortable
Next