Reputation: 2735
We can reorder the wxDataViewCtrl columns via drag and drop in the control. But I want to reorder the column of wxDataViewCtrl in the control programmatically.
I am looking for API like ReorderColumn(unsigned int pos, wxDataViewColumn *col)
API for adding, deleting and inserting a columns are available. But I did not find any direct API to achieve the reordering.
Upvotes: 1
Views: 252
Reputation: 22688
There is no way to do this directly currently, you will need to use DeleteColumn()
and InsertColumn()
to swap the columns manually.
Upvotes: 2