How to get rid of row labels?

132 Views Asked by At

What's the best way to get rid of row_labels? My program should work with CSV files, and I need only col_labels.

enter image description here

I'm going to make this column's width 0px. But is it the best possible solution?

2

There are 2 best solutions below

0
SteveL On BEST ANSWER

If you look in the wxWidgets grid sample, specifically the Tabular Table Test, it hides the row labels with this code

void OnToggleShowRowLabels(wxCommandEvent&)
{
    m_grid->SetRowLabelSize(m_chkShowRowLabels->IsChecked()
                            ? wxGRID_AUTOSIZE
                            : 0);
}

So setting the column width to 0 seems to be the best way to do it.

0
T-Rex On

HideRowLabels() method should do the thing. If you are using the latest SVN HEAD at least.