Hi,
We can rearrange the columns by dragging and dropping to the desired position.
Same thing I need to achieve via source code. Like : wxDataViewCtrl::Move(const wxDataViewColumn* pColumn, int pos)
I am using generic wxDataViewCtrl.
wxDataViewCtrl rearrange columns programmatically
Re: wxDataViewCtrl rearrange columns programmatically
I think it's not possible with the current API. Unfortunately there is no getter for the private member "wxDataViewHeaderWindow *m_headerArea;". You'd have to derive your own class from wxDataViewCtrl , then you could use wxHeaderCtrl::SetColumnsOrder(). (wxDataViewHeaderWindow derives from wxHeaderCtrl )
http://docs.wxwidgets.org/trunk/classwx ... b0df0b8990
http://docs.wxwidgets.org/trunk/classwx ... b0df0b8990
Use the source, Luke!