Code: Select all
wxObj->Bind(wxEVT_CHANGE_CHOICE_EDITOR,&CLASS::func,this);
Code: Select all
wxObj->Bind(wxEVT_CHANGE_CHOICE_EDITOR,&CLASS::func,this);
grid->SetCellEditor(rows, 1, new wxGridCellChoiceEditor(3, features, false));catalin wrote:Something like myGrid->GetXXXEditorXXX(...)->GetControl()->Bind(...)
But mind that
- the editor is most probably null until it is needed for the first time;
- it is very likely that not all cells have the same editor;
- you probably need wxEVT_COMBOBOX.