I have each column of my data grid set to Sort = Automatic, but clicking on the header does nothing.
Am I missing some other setting ?
Okay – after I ran your sample – I figured out that I have to set column.SortMode = DataGridViewColumnSortMode.Automatic via code after assigning the Datatable to the datasource . Even though some properties from the designer are used like the Data Column Name and Header Text, the Sorting set in the designer did not stick.
This works now. Thanks!
Hi Edmond,
can you please try simple sample and sort for a non-ID column ?
TIA
Frank
Hi Edmond,
can´t reproduce here. How is your data populated ? Any event handler that might interfer ?
Any chance to wrap it up in a test case ?
Best regards
Frank
Please login first to submit.