wxDataViewCtrl, is there a way to define a custom renderer for the column/row labels?

52 views
Skip to first unread message

Tony Kennedy

unread,
Feb 27, 2025, 8:33:39 AM2/27/25
to wx-users
I cannot seem to find a way. I know you can define a customer renderer for cell contents, but cannot find a way to define one for the column header label.

Thanks in advance,

Tony.

Vadim Zeitlin

unread,
Feb 27, 2025, 9:52:59 AM2/27/25
to wx-u...@googlegroups.com
On Thu, 27 Feb 2025 05:33:39 -0800 (PST) Tony Kennedy wrote:

TK> I cannot seem to find a way. I know you can define a customer renderer for
TK> cell contents, but cannot find a way to define one for the column header
TK> label.

No, this control doesn't support doing this, as native controls don't
allow it. You'll need to use wxGrid to customize the labels rendering.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/

Tony Kennedy

unread,
Feb 27, 2025, 9:55:13 AM2/27/25
to wx-users
Not to worry. I've got something that works, I'd just like to make it "perfect", but what I have will do.

Many thanks,

Tony.




Reply all
Reply to author
Forward
0 new messages