This function can be overridden in the classes deriving from this control instead of overriding UpdateColumnWidthToFit .

To implement automatic column resizing to fit its contents width when the column divider is double clicked, you need to simply return the fitting width for the given column idx from this method, the control will automatically use the biggest value between the one returned from here and the one needed for the display of the column title itself.

The base class version returns -1 indicating that this function is not implemented.

Initially the column is shown by default or hidden if it was added with wx.COL_HIDDEN flag set.

When a column is hidden, it doesn’t appear at all on the screen but its index is still taken into account when working with other columns. E.g. if there are three columns 0, 1 and 2 and the column 1 is hidden you still need to use index 2 to refer to the last visible column.

Parameters:

idx (int) – The index of the column to show or hide, from 0 to GetColumnCount .

show (bool) – Indicates whether the column should be shown (default) or hidden.