How to remove default first row with row numbers in wxGrid? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
psion_revo
Earned a small fee
Earned a small fee
Posts: 12
Joined: Sun Feb 07, 2016 10:13 am

How to remove default first row with row numbers in wxGrid?

Post by psion_revo » Sun Feb 07, 2016 11:12 am

I create an wxGrid object and then

Code: Select all

CreateGrid(0,1);
.
But I've got 2 rows instead of 1.
A question is: how to remove default first row with row numbers in wxGrid?

Thanks.
Attachments
wxGrid.jpg
wxGrid.jpg (42.1 KiB) Viewed 461 times

User avatar
doublemax
Moderator
Moderator
Posts: 14518
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to remove default first row with row numbers in wxGrid?

Post by doublemax » Sun Feb 07, 2016 11:22 am

wxGrid::HideRowLabels() should hide that column.
http://docs.wxwidgets.org/trunk/classwx ... 73c8112156
Use the source, Luke!

Post Reply