[wxGrid] span label columns

Hello,

I'd like to know if it possible to span label columns in a wxGrid ?

Regards,

No, but you can take over the drawing of the labels so you can make it look like they are spanning columns. See wx.lib.mixins.gridlabelrenderer for some classes that may help, or if that doesn't fit your needs you can just intercept the EVT_PAINT event for the window returned from thegrid.GetGridColLabelWindow() and draw whatever you want.

···

On 4/9/10 11:51 AM, janemba wrote:

Hello,

I'd like to know if it possible to span label columns in a wxGrid ?

--
Robin Dunn
Software Craftsman

Robin Dunn wrote:

···

On 4/9/10 11:51 AM, janemba wrote:

Hello,

I'd like to know if it possible to span label columns in a wxGrid ?

No, but you can take over the drawing of the labels so you can make it
look like they are spanning columns. See
wx.lib.mixins.gridlabelrenderer for some classes that may help, or if
that doesn't fit your needs you can just intercept the EVT_PAINT event
for the window returned from thegrid.GetGridColLabelWindow() and draw
whatever you want.

ok thx :wink: