1

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?

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Nakilon
  • 34,866
  • 14
  • 107
  • 142

2 Answers2

1

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.

SteveL
  • 1,811
  • 1
  • 13
  • 23
0

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

T-Rex
  • 874
  • 1
  • 6
  • 20