Hi, I am using a DataGridView on windows form. It displays just two columns. By default when the application is run, if I click on the column headers, the datagridview gets sorted based on that column. However, I want to disable sorting on the grid view completely. I was not able to find a property where I could set sorting = false, or something like that.
Can anyone please tell me how to disable grid view sorting?
Thanks :)
EDIT:
Just figured I could set individual columns as NotSortable (posted answer below). Can it be done at the grid view level, rather than individual columns?