wx.Grid column sorting

1) On this page (search for 'sorting support') it says "The grid will automatically update the sorting indicator on the column which was clicked."

http://docs.wxwidgets.org/trunk/classwx_grid.html

I'm not seeing any sorting indicator. The Demos don't show it either. Does something have to be done to enable it?

Thanks,
Michael

Yep. The drawing of the sorting indicator is not implemented for the generic grid col labels, but if you tell it to use the native column headers instead with UseNativeColHeader(True) then it will show it there.

Also, just to be clear, these are features added in 2.9 and not available in 2.8.

···

On 3/6/12 4:31 PM, Michael Hipp wrote:

1) On this page (search for 'sorting support') it says "The grid will
automatically update the sorting indicator on the column which was
clicked."

wxWidgets: wxGrid Class Reference

I'm not seeing any sorting indicator. The Demos don't show it either.
Does something have to be done to enable it?

--
Robin Dunn
Software Craftsman

1) On this page (search for 'sorting support') it says "The grid will
automatically update the sorting indicator on the column which was
clicked."

wxWidgets: wxGrid Class Reference

I'm not seeing any sorting indicator. The Demos don't show it either.
Does something have to be done to enable it?

Yep. The drawing of the sorting indicator is not implemented for the generic
grid col labels, but if you tell it to use the native column headers instead
with UseNativeColHeader(True) then it will show it there.

Ah, thank you! That's a very nice modification. The 'native' even looks better here on Win7.

Also, just to be clear, these are features added in 2.9 and not available in 2.8.

I'm working thru some wx.Grid code written *long* ago in 2.8 (or was it even earlier?) and I'm discovering some very nice improvements in 2.9. Many thanks to whoever did all that work.

Michael

···

On 2012-03-06 7:12 PM, Robin Dunn wrote:

On 3/6/12 4:31 PM, Michael Hipp wrote: