Hi, HideCol is not implemented in wxWidgets 2.8.10 (or any 2.8 version ).
However, the implementations in later wxWidgets are just simple wrappers around existing size methods:
void HideRowLabels() { SetRowLabelSize( 0 ); } void HideColLabels() { SetColLabelSize( 0 ); } void HideRow(int row) { SetRowSize(row, 0); } void ShowRow(int row) { SetRowSize(row, -1); } void HideCol(int col) { SetColSize(col, 0); } void ShowCol(int col) { SetColSize(col, -1); } so, for HideCol you want $grid->SetColSize($colnum, 0); Hope this helps. Mark On 25/04/2011 11:40, Erik Colson wrote:
ehlo, I used to keep metadata for a data grid in a separate array or hash. When that data is no more than a hidden id, I'd find it preferable to put this in a column which would be hidden from the user. I tried Wx::Grid->HideCol which seems not implemented in my wxPerl version based on wxwidgets 2.8.10 I think.. Is there another way for hiding columns in a Wx::Grid ? thanks -- erik