Page 1 of 1

DataGridView Sorting

Posted: Tue May 23, 2017 12:22 pm
by MrRat
The first column, which appears to be powered on state, when the header is clicked on it shows up and down arrows but doesn't actually sort.

In grids with the second column being RB that column does not show arrows and does not sort.

Re: DataGridView Sorting

Posted: Tue May 23, 2017 2:05 pm
by Cubert
In VB , I cannot sort on a image column.

Re: DataGridView Sorting

Posted: Tue May 23, 2017 3:54 pm
by MrRat
oh yeah, duh. that would throw the automatic sort off.

if you were doing the sort in code you could use a hidden column to hold the value represented by the image and sort on the hidden column when the image column's header was clicked. but that would be pain.