In order to allow the user to move existing lines up or down in the grid, i.e. reorder the rows, I want to read back the contents of the choice box which is populated when the row is first inserted so that I can reinsert them after the row is moved up or down.
I have tried
Code: Select all
wxGridCellChoiceEditor *pCellEditor =
(wxGridCellChoiceEditor *)m_gridTemplate->GetCellEditor( iSelRow + 1, TE_COL_LIST );
pCellEditor->DecRef();
m_gridTemplate->SetCellEditor( iSelRow - 1, TE_COL_TYPE, pCellEditor->Clone() );
Will I have to remember the contents aside from the choice box and re-insert them once the row is in its new position, or is there a way to access the data and read it back?
TIA