DataGridView - disable sorting

  • Thread starter Thread starter dbuchanan
  • Start date Start date
D

dbuchanan

I cannot find the property to set that will disable row sorting when
the user clicks the column header.

Any suggestions?
 
Select the datagridview, click the little thing in the right corner.
Select edit columns.
In the behavior section, change SortMode to NotSortable
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top