Search code examples
rubywxwidgetswxruby

How to get rid of row labels?


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?


Solution

  • 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.