Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why container node can not have multiple columns in wxDataViewCtrl

Tags:

c++

wxwidgets

wxDataViewCustomRenderer::Render() is not getting called for all the columns except for first expander column.

enter image description here

I need to have data in multiple columns for the expander/collapser row.

How can I acheive it without modifying the wxDataViewCtrl source.

like image 815
Anil8753 Avatar asked Dec 07 '25 22:12

Anil8753


1 Answers

If I understand your question correctly, you are complaining about the default behaviour of wxDataViewModel::HasContainerColumns() which returns false in the base class. If you want to be able to define fields for the other columns of the expander items, you need to override this method to return true in your custom model class.

like image 153
VZ. Avatar answered Dec 10 '25 12:12

VZ.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!