Hi,
In my wx application, I show a wxDataViewListCtrl. One of it's column's cell mode is set for wxDATAVIEW_CELL_EDITABLE. I don't want all cells to be editable. Is it possible to do so or somehow prevent user to edit some cells. I looked into dataview sample and tried using wxDataViewVirtualListMode::GetAttrByRow but don't know what to add code to disable a cell so that it can't be editable.
Plaase help.
Regards,
R.
[wxMSW][wx3.0.3] How to prevent editing some cells of a wxDataViewListCtrl
Re: [wxMSW][wx3.0.3] How to prevent editing some cells of a wxDataViewListCtrl
Why not use wxGrid instead wxDataViewListCtrl if you need hard operations with cells? This control provides much more features.
Re: [wxMSW][wx3.0.3] How to prevent editing some cells of a wxDataViewListCtrl
Hi,
Thank you.
Sometimes it is useful to check documentation...EVT_DATAVIEW_ITEM_START_EDITING(id, func):
Process a wxEVT_DATAVIEW_ITEM_START_EDITING event. This event can be vetoed in order to prevent editing on an item by item basis.
Thank you.