wxGrid如何去掉表头? Topic is solved

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
hats
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Sep 16, 2009 3:50 pm
Location: China
Contact:

wxGrid如何去掉表头?

Post by hats » Sun May 09, 2010 1:16 pm

wxGrid里的函数哪个可以去掉表头?
如下图,如何把1,2,3,4,5..该列去掉?
Attachments
QQ截图未命名.jpg
QQ截图未命名.jpg (14.8 KiB) Viewed 3446 times

kingkamg
I live to help wx-kind
I live to help wx-kind
Posts: 187
Joined: Tue Apr 08, 2008 1:45 pm

Post by kingkamg » Mon May 10, 2010 2:50 am

没细看,但估计继承它,然后重载些方法可以做到,建议看原始代码实现

sishui
Earned some good credits
Earned some good credits
Posts: 121
Joined: Mon Mar 10, 2008 6:13 am
Location: 中國

Post by sishui » Mon May 10, 2010 5:22 pm

SetRowLabelSize(0)
work work!!!

hats
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Sep 16, 2009 3:50 pm
Location: China
Contact:

Post by hats » Tue May 11, 2010 2:25 pm

谢谢楼上!

kevin_wang
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Dec 31, 2009 8:16 am

Post by kevin_wang » Wed May 19, 2010 11:34 am

顺便问一句, 怎么得到最左边一列的宽度? 我想让最后一列的单元格按照容器的大小伸展。

sishui
Earned some good credits
Earned some good credits
Posts: 121
Joined: Mon Mar 10, 2008 6:13 am
Location: 中國

Post by sishui » Wed May 19, 2010 12:56 pm

kevin_wang wrote:顺便问一句, 怎么得到最左边一列的宽度? 我想让最后一列的单元格按照容器的大小伸展。
在OnIdle里 AutoSizeColumns,或者自己设置宽度
work work!!!

Post Reply