wxGrid

wxGrid
This is a grid control that can be used to display tabular data. It also allows editing in place by users, similar to a spreadsheet.

Creation Parameters
It is important to remember that all wxGrid functions and procedures use zero-based references to all cells (0, 1, 2,...)
Functions/Procedures
Supertopics
Subtopics

wxGrid

[proc]
append_cols
( atom grid, integer cols )

Category: wxGrid

Appends cols columns to the grid.


wxGrid

[proc]
append_rows
( atom grid, integer rows )

Category: wxGrid

Appends rows rows to the grid.


wxGrid

[proc]
auotosize_row
( atom grid, atom row )

Category: wxGrid

Automatically sizes the row to fit its contents. If setAsMin is true the calculated height will also be set as the minimal height for the row.

Note: wxGrid sets up arrays to store individual row and column sizes when non-default sizes are used. The memory requirements for this could become prohibitive if your grid is very large.


wxGrid

[proc]
autosize_columns
( atom grid )

Category: wxGrid

Resizes each column to the minimum size required to display all the data in each column.


wxGrid

[proc]
autosize_grid
( atom grid )

Category: wxGrid

Automatically sets the height and width of all rows and columns to fit their contents.

Note: wxGrid sets up arrays to store individual row and column sizes when non-default sizes are used. The memory requirements for this could become prohibitive if your grid is very large.


wxGrid

[proc]
autosize_rows
( atom grid )

Category: wxGrid

Automatically sizes all rows to fit their contents. If setAsMin is true the calculated heights will also be set as the minimal heights for the rows.

Note: wxGrid sets up arrays to store individual row and column sizes when non-default sizes are used. The memory requirements for this could become prohibitive if your grid is very large.


wxGrid

[func]
batch_count
( atom grid )

Category: wxGrid

Returns: number of unmatched calls to begin_batch()


wxGrid

[proc]
begin_batch
( atom grid )

Category: wxGrid

Stops updates of the grid until end_batch() is called. This is useful for when you need to modify a large number of cells.


wxGrid

[func]
can_drag_grid_col_move
( atom grid )

Category: wxGrid

Returns true if columns can be moved by dragging with the mouse. Columns can be moved by dragging on their labels.


wxGrid

[func]
can_drag_grid_col_size
( atom grid )

Category: wxGrid

Returns true if columns can be resized by dragging with the mouse. Columns can be resized by dragging the edges of their labels. If grid line dragging is enabled they can also be resized by dragging the right edge of the column in the grid cell area (see enable_drag_grid_col_size).


wxGrid

[func]
can_drag_grid_row_size
( atom grid )

Category: wxGrid

Returns true if rows can be resized by dragging with the mouse. Rows can be resized by dragging the edges of their labels. If grid line dragging is enabled they can also be resized by dragging the lower edge of the row in the grid cell area (see enable_drag_grid_row_size).


wxGrid

[func]
can_drag_grid_size
( atom grid )

Category: wxGrid

Return true if the dragging of grid lines to resize rows and columns is enabled or false otherwise.


wxGrid

[func]
can_enable_cell_control
( atom grid )

Category: wxGrid

Returns true if the in-place edit control for the current grid cell can be used and false otherwise (e.g. if the current cell is read-only).


wxGrid

[proc]
clear_grid
( atom grid )

Category: wxGrid

Deletes all data in the grid.


wxGrid

[proc]
clear_grid_selection
( atom grid )

Category: wxGrid

Deselects all cells that are currently selected.


wxGrid

[proc]
delete_cols
( atom grid, integer pos, integer n, integer relabel )

Category: wxGrid

Deletes n columns from the grid at position pos. If relabel is TRUE, the function OnChangeLabels is called to give the application the opportunity to relabel.


wxGrid

[proc]
delete_rows
( atom grid, integer pos, integer n, integer relabel )

Category: wxGrid

Deletes n rows from the grid at position pos. If relabel is TRUE, the function OnChangeLabels is called to give the application the opportunity to relabel.


wxGrid

[proc]
enable_drag_grid_col_move
( atom grid, atom enable )

Category: wxGrid

Enables or disables column moving by dragging with the mouse.


wxGrid

[proc]
enable_drag_grid_col_size
( atom grid, atom enable )

Category: wxGrid

Enables or disables column sizing by dragging with the mouse.


wxGrid

[proc]
enable_drag_grid_row_size
( atom grid, atom enable )

Category: wxGrid

Enables or disables row sizing by dragging with the mouse.


wxGrid

[proc]
enable_drag_grid_size
( atom grid, integer enable )

Category: wxGrid

Enables or disables row and column resizing by dragging gridlines with the mouse.


wxGrid

[proc]
enable_grid_cell_edit_control
( atom grid, atom enable )

Category: wxGrid

Enables or disables in-place editing of grid cell data. The grid will issue either a wxEVT_GRID_EDITOR_SHOWN or wxEVT_GRID_EDITOR_HIDDEN event.


wxGrid

[proc]
enable_grid_editing
( atom grid, atom edit )

Category: wxGrid

If the edit argument is false this function sets the whole grid as read-only. If the argument is true the grid is set to the default state where cells may be editable. In the default state you can set single grid cells and whole rows and columns to be editable or read-only via wxGridCellAttribute::SetReadOnly. For single cells you can also use the shortcut function wxGrid::SetReadOnly.

For more information about controlling grid cell attributes see the wxGridCellAttr cell attribute class and the wxGrid classes overview.


wxGrid

[proc]
enable_grid_lines
( atom grid, atom enable )

Category: wxGrid

Turns the drawing of grid lines on or off.


wxGrid

[proc]
end_batch
( atom grid )

Category: wxGrid

Resumes updating of the grid after a call to begin_batch(). This is useful for when you need to modify a large number of cells.


wxGrid

[proc]
force_refresh_grid
( atom grid )

Category: wxGrid

Causes immediate repainting of the grid. Use this instead of the usual refresh_window.


wxGrid

[func]
get_cell_alignment
( atom grid, atom row, atom col )

Category: wxGrid

Sets the arguments to the horizontal and vertical text alignment values for the grid cell at the specified location.

Horizontal alignment will be one of wxALIGN_LEFT, wxALIGN_CENTRE or wxALIGN_RIGHT. Vertical alignment will be one of wxALIGN_TOP, wxALIGN_CENTRE or wxALIGN_BOTTOM.


wxGrid

[func]
get_cell_background_color
( atom grid, atom row, atom col )

Category: wxGrid

Returns the background colour of the cell at the specified location.


wxGrid

[func]
get_cell_editor
( atom grid, sequence cell )

Category: wxGrid

Returns the wxGridCellEditor for the cell


wxGrid

[func]
get_cell_editor_control
( atom grid, object editor )

Category: wxGrid

Returns the Control belonging to the wxGridCellEditor

If editor is a sequence, then it specifies the { row, column } of the wxGridCellEditor to be fetched. Otherwise, it is a wxGridCellEditor (see get_cell_editor).


wxGrid

[func]
get_cell_font
( atom grid, atom row, atom col )

Category: wxGrid

Returns the font for text in the grid cell at the specified location.


wxGrid

[func]
get_cell_text_color
( atom grid, atom row, atom col )

Category: wxGrid

Returns the text colour for the grid cell at the specified location.


wxGrid

[func]
get_cell_value
( atom grid, integer row, integer col )

Category: wxGrid

Returns: string containing the value

If the cell contains numeric data, you will need to use value(), since all values returned by get_cell_value() are strings (this is how wxGrid stores everything).


wxGrid

[func]
get_col_label
( atom grid, integer col )

Category: wxGrid

Returns a sequence which holds the information at the top of the column specified by 'column'. The first column is 0. The column index increases as it goes to the right.


wxGrid

[func]
get_col_label_size
( atom grid )

Category: wxGrid

Returns an integer which represents the height of the columns in pixels.


wxGrid

[func]
get_col_size
( atom grid, integer col)

Category: wxGrid

Returns the width of the specified column.


wxGrid

[func]
get_default_cell_background_color
( atom grid )

Category: wxGrid

Returns the current default background colour for grid cells.


wxGrid

[func]
get_default_cell_font
( atom grid )

Category: wxGrid

Returns the current default font for grid cell text.


wxGrid

[func]
get_default_cell_text_colour
( atom grid )

Category: wxGrid

Returns the current default colour for grid cell text.


wxGrid

[func]
get_default_col_label_size
( atom grid )

Category: wxGrid

Returns the default height for column labels.


wxGrid

[func]
get_default_col_size
( atom grid )

Category: wxGrid

Returns the current default width for grid columns.


wxGrid

[func]
get_default_editor_for_cell
( atom grid, atom row, atom col )

Category: wxGrid


wxGrid

[func]
get_default_grid_editor
( atom grid )

Category: wxGrid

Returns a pointer to the current default grid cell editor.

See wxGridCellEditor and the wxGrid overview for more information about cell editors and renderers.


wxGrid

[func]
get_default_row_label_size
( atom grid )

Category: wxGrid

Returns the default width for the row labels.


wxGrid

[func]
get_default_row_size
( atom grid )

Category: wxGrid

Returns the current default height for grid rows.


wxGrid

[func]
get_grid_batch_count
( atom grid )

Category: wxGrid

Returns the number of times that begin_batch has been called without (yet) matching calls to end_batch. While the grid's batch count is greater than zero the display will not be updated.


wxGrid

[func]
get_grid_label_background_color
( atom grid )

Category: wxGrid

Returns the colour used for the background of row and column labels.


wxGrid

[func]
get_grid_label_font
( atom grid )

Category: wxGrid

Returns the font used for row and column labels.


wxGrid

[func]
get_grid_label_text_color
( atom grid )

Category: wxGrid

Returns the colour used for row and column label text.


wxGrid

[func]
get_grid_lines_enabled
( atom grid )

Category: wxGrid

Returns true if drawing of grid lines is turned on, false otherwise.


wxGrid

[func]
get_grid_line_color
( atom grid )

Category: wxGrid

Returns the colour used for grid lines.


wxGrid

[func]
get_grid_row_label_align
( atom grid )

Category: wxGrid

Sets the arguments to the current row label alignment values.

Horizontal alignment will be one of wxLEFT, wxCENTRE or wxRIGHT. Vertical alignment will be one of wxTOP, wxCENTRE or wxBOTTOM.


wxGrid

[func]
get_grid_scroll_line
( atom grid )

Category: wxGrid

Returns the number of pixels per scroll increment. The default is 15.


wxGrid

[func]
get_grid_selection_background
( atom grid )

Category: wxGrid

Access or update the selection fore/back colours


wxGrid

[func]
get_grid_selection_foreground
( atom grid )

Category: wxGrid

See get_grid_selection_background.


wxGrid

[func]
get_grid_view_width
( atom grid )

Category: wxGrid

Returned number of whole cols visible.


wxGrid

[func]
get_number_cols
( atom grid )

Category: wxGrid

Returns the total number of grid columns (actually the number of columns in the underlying grid table).


wxGrid

[func]
get_number_rows
( atom grid )

Category: wxGrid

Returns the total number of grid rows (actually the number of rows in the underlying grid table).


wxGrid

[func]
get_row_label_size
( atom grid )

Category: wxGrid

Returns an integer which represents the width of the rows in pixels.


wxGrid

[func]
get_row_size
( atom grid, integer row)

Category: wxGrid

Returns the height of the specified row.


wxGrid

[func]
get_selected_cells
( atom grid )

Category: wxGrid


wxGrid

[func]
get_selected_cols
( atom grid )

Category: wxGrid


wxGrid

[func]
get_selected_rows
( atom grid )

Category: wxGrid


wxGrid

[func]
grid_cell_to_rect
( atom grid, atom row, atom col )

Category: wxGrid

Return the rectangle corresponding to the grid cell's size and position in logical coordinates.


wxGrid

[func]
grid_event_cell
( atom event )

Category: wxGrid

Returns: {row, col}

Call this inside of wxGrid event handlers to get the row and column where the event is taking place.


wxGrid

[func]
grid_pos
( atom grid )

Category: wxGrid

Returns: { cursor_row, cursor_col }


wxGrid

[func]
grid_size
( atom grid )

Category: wxGrid

Returns: Sequence {rows,cols} indicating the current size of the grid.


wxGrid

[proc]
hide_cell_edit_control
( atom grid )

Category: wxGrid

Hides the in-place cell edit control.


wxGrid

[func]
insert_grid_cols
( atom grid, atom pos, atom num_cols )

Category: wxGrid

Inserts one or more new columns into a grid with the first new column at the specified position and returns true if successful.


wxGrid

[func]
insert_grid_rows
( atom grid, atom pos, atom num_rows )

Category: wxGrid

Inserts one or more new rows into a grid with the first new row at the specified position and returns true if successful.


wxGrid

[func]
is_cell_edit_control_enabled
( atom grid )

Category: wxGrid

Returns true if the in-place edit control is currently enabled.


wxGrid

[func]
is_cell_visible
( atom grid, integer row, integer col, integer wholly_visible )

Category: wxGrid

Returns true if a cell is either wholly visible (the default) or at least partially visible in the grid window.


wxGrid

[func]
is_current_cell_read_only
( atom grid )

Category: wxGrid

Returns true if the current cell has been set to read-only.


wxGrid

[func]
is_grid_editable
( atom grid )

Category: wxGrid

Returns false if the whole grid has been set as read-only or true otherwise.


wxGrid

[func]
is_in_grid_selection
( atom grid, integer row, integer col )

Category: wxGrid

Is this cell currently selected.


wxGrid

[func]
is_selection_for_grid
( atom grid )

Category: wxGrid

Returns true if there are currently rows, columns or blocks of cells selected.


wxGrid

[func]
last_cell_visible
( atom grid )

Category: wxGrid

Returns: last visible cell in the grid


wxGrid

[proc]
make_cell_visible
( atom grid, atom row, atom col )

Category: wxGrid

Scrolls the grid if necessary to make the cell visible.


wxGrid

[func]
move_grid_cursor_down
( atom grid, atom expand_selection )

Category: wxGrid

Moves the grid cursor down by one row. If a block of cells was previously selected it will expand if the argument is true or be cleared if expand_selection is false.

Keyboard

This function is called for Down cursor key presses or Shift+Down to expand a selection.


wxGrid

[func]
move_grid_cursor_down_block
( atom grid, atom expand_selection )

Category: wxGrid

Moves the grid cursor down in the current column such that it skips to the beginning or end of a block of non-empty cells. If a block of cells was previously selected it will expand if expand_selection is true or be cleared if the argument is false.

Keyboard

This function is called for the Ctrl+Down key combination. Shift+Ctrl+Down expands a selection.


wxGrid

[func]
move_grid_cursor_left
( atom grid, atom expand_selection )

Category: wxGrid

Moves the grid cursor left by one column. If a block of cells was previously selected it will expand if the argument is true or be cleared if expand_selection is false.

Keyboard

This function is called for Left cursor key presses or Shift+Left to expand a selection.


wxGrid

[func]
move_grid_cursor_left_block
( atom grid, atom expand_selection )

Category: wxGrid

Moves the grid cursor left in the current row such that it skips to the beginning or end of a block of non-empty cells. If a block of cells was previously selected it will expand if expand_selection is true or be cleared if the argument is false.

Keyboard

This function is called for the Ctrl+Left key combination. Shift+Ctrl+left expands a selection.


wxGrid

[func]
move_grid_cursor_right
( atom grid, atom expand_selection )

Category: wxGrid

Moves the grid cursor right by one column. If a block of cells was previously selected it will expand if the argument is true or be cleared if expand_selection is false.

Keyboard

This function is called for Right cursor key presses or Shift+Right to expand a selection.


wxGrid

[func]
move_grid_cursor_right_block
( atom grid, atom expand_selection )

Category: wxGrid

Moves the grid cursor right in the current row such that it skips to the beginning or end of a block of non-empty cells. If a block of cells was previously selected it will expand if expand_selection is true or be cleared if the argument is false.

Keyboard

This function is called for the Ctrl+Right key combination. Shift+Ctrl+Right expands a selection.


wxGrid

[func]
move_grid_cursor_up
( atom grid, atom expand_selection )

Category: wxGrid

Moves the grid cursor up by one row. If a block of cells was previously selected it will expand if the argument is true or be cleared if expand_selection is false.

Keyboard

This function is called for Up cursor key presses or Shift+Up to expand a selection.


wxGrid

[func]
move_grid_cursor_up_block
( atom grid, atom expand_selection )

Category: wxGrid

Moves the grid cursor up in the current column such that it skips to the beginning or end of a block of non-empty cells. If a block of cells was previously selected it will expand if expand_selection is true or be cleared if the argument is false.

Keyboard

This function is called for the Ctrl+Up key combination. Shift+Ctrl+Up expands a selection.


wxGrid

[func]
move_grid_page_down
( atom grid )

Category: wxGrid

Moves the grid cursor down by some number of rows so that the previous bottom visible row becomes the top visible row.

Keyboard

This function is called for PgDn keypresses.


wxGrid

[func]
move_grid_page_up
( atom grid )

Category: wxGrid

Moves the grid cursor up by some number of rows so that the previous top visible row becomes the bottom visible row.

Keyboard

This function is called for PgUp keypresses.


wxGrid

[proc]
save_grid_edit_control_value
( atom grid )

Category: wxGrid

Sets the value of the current grid cell to the current in-place edit control value. This is called automatically when the grid cursor moves from the current cell to a new cell. It is also a good idea to call this function when closing a grid since any edits to the final cell location will not be saved otherwise.


wxGrid

[proc]
select_grid_all
( atom grid )

Category: wxGrid

Selects all cells in the grid.


wxGrid

[proc]
select_grid_block
( atom grid, integer top_row, integer left_col, integer bottom_row, integer right_col, integer add_to_selected )

Category: wxGrid

Selects a rectangular block of cells. If add_to_selected is false then any existing selection will be deselected; if true the column will be added to the existing selection.


wxGrid

[proc]
select_grid_cell
( atom grid, atom row, atom col )

Category: wxGrid

Moves the cursor and selection to the cell specified.


wxGrid

[proc]
select_grid_col
( atom grid, integer col )

Category: wxGrid

Selects the specified column.


wxGrid

[proc]
select_grid_row
( atom grid, integer row )

Category: wxGrid

Selects the specified row.


wxGrid

[proc]
set_cell
( atom grid, atom row, atom col )

Category: wxGrid

Moves the cursor to the current cell being edited. Does not alter the selection (see select_grid_cell)


wxGrid

[proc]
set_cell_alignment
( atom grid, atom row, atom col, atom horz, atom vert )

Category: wxGrid

Set the vertical of horizontal alignment of a cell:


wxGrid

[proc]
set_cell_background_color
( atom grid, atom row, atom col, atom color )

Category: wxGrid


wxGrid

[proc]
set_cell_editor
( atom grid, atom row, atom col, integer ed_type, object data )

Category: wxGrid

Allows entries other than the standard text based editor to be used.

The only editors currently supported are:


wxGrid

[proc]
set_cell_font
( atom grid, atom row, atom col, atom font )

Category: wxGrid

Sets the font for text in the grid cell at the specified location.


wxGrid

[proc]
set_cell_readonly
( atom grid, atom row, atom col, integer readonly )

Category: wxGrid

Makes the cell read only if readonly is 1, or allows editing if readonly is 0.


wxGrid

[proc]
set_cell_text_color
( atom grid, atom row, atom col, atom color )

Category: wxGrid

Sets the text colour for the grid cell at the specified location.


wxGrid

[proc]
set_cell_value
( atom grid, object val, integer row, integer col )

Category: wxGrid

Sets the contents of a cell. If val is an atom, then the contents of the cell will be sprint(val).


wxGrid

[proc]
set_col_alignment
( atom grid, atom col, atom horz, atom vert )

Category: wxGrid

Set the vertical of horizontal alignment of a column:


wxGrid

[proc]
set_col_editor
( atom grid, atom col, integer ed_type, object data )

Category: wxGrid

Allows entries other than the standard text based editor to be used.

The only editors currently supported are:


wxGrid

[proc]
set_col_format_bool
( atom grid, atom col )

Category: wxGrid

Sets the specified column to display boolean values. wxGrid displays boolean values with a checkbox.


wxGrid

[proc]
set_col_format_float
( atom grid, atom col, atom width, atom precision )

Category: wxGrid

Sets the specified column to display floating point values with the given width and precision.


wxGrid

[proc]
set_col_format_number
( atom grid, atom col )

Category: wxGrid

Sets the specified column to display integer values.


wxGrid

[proc]
set_col_label
( atom grid, integer col, sequence text )

Category: wxGrid

Changes the label of a column.


wxGrid

[proc]
set_col_label_align
( atom grid, atom horiz, atom vert )

Category: wxGrid

Use wxLEFT, wxRIGHT and wxTOP, wxBOTTOM (or zero for center)


wxGrid

[proc]
set_col_label_size
( atom grid, integer height )

Category: wxGrid

If height equals to wxGRID_AUTOSIZE then height is calculated automatically so that no label is truncated. Note that this could be slow for a large table. This flag is new since wxWidgets version 2.8.8.


wxGrid

[proc]
set_col_pos
( atom grid, atom col_id, atom new_pos )

Category: wxGrid

Sets the position of the specified column.


wxGrid

[proc]
set_col_readonly
( atom grid, atom col, integer readonly )

Category: wxGrid

Sets the specified col in the specified grid to be read only if readonly is 1. Editing will be allowed if readonly is 0.


wxGrid

[func]
set_col_size
( atom grid, atom col, atom size )

Category: wxGrid

Change the size of a grid column. This function does not refresh the grid. If you are calling it outside of a BeginBatch EndBatch block you can use force_refresh_grid to see the changes


wxGrid

[proc]
set_default_cell_align
( atom grid, atom horiz, atom vert )

Category: wxGrid

Sets the default horizontal and vertical alignment for grid cell text.

Horizontal alignment should be one of wxALIGN_LEFT, wxALIGN_CENTRE or wxALIGN_RIGHT. Vertical alignment should be one of wxALIGN_TOP, wxALIGN_CENTRE or wxALIGN_BOTTOM.


wxGrid

[proc]
set_default_cell_background_color
( atom grid, atom color )

Category: wxGrid

Sets the default background colour for grid cells.


wxGrid

[proc]
set_default_cell_font
( atom grid, atom font )

Category: wxGrid

Sets the default font to be used for grid cell text.


wxGrid

[proc]
set_default_cell_text_color
( atom grid, atom color )

Category: wxGrid

Sets the current default colour for grid cell text.


wxGrid

[proc]
set_default_col_size
( atom grid, atom width, atom resize_existing )

Category: wxGrid

Sets the default width for columns in the grid. This will only affect columns subsequently added to the grid unless resize_existing is true.


wxGrid

[proc]
set_default_grid_editor
( atom grid, atom editor )

Category: wxGrid

Sets the default cell editor control for the grid.


wxGrid

[proc]
set_default_row_size
( atom grid, atom width, atom resize_existing )

Category: wxGrid

Sets the default height for rows in the grid. This will only affect rows subsequently added to the grid unless resize_existing is true.


wxGrid

[proc]
set_editor_choices
( atom grid, object cell, sequence choices )

Category: wxGrid

If cell is an integer, then it refers to an entire column, and the choices will be set for the column editor. If cell is a sequence, it refers to the cell by {row, column}, and that cell's editor will be set.


wxGrid

[proc]
set_grid_editable
( atom grid, integer editable )

Category: wxGrid

Makes the entire grid uneditable by the user is editable is 0, or allows editing if editable is 1.


wxGrid

[proc]
set_grid_label_background_color
( atom grid, atom color )

Category: wxGrid

Sets the background colour for row and column labels.


wxGrid

[proc]
set_grid_label_font
( atom grid, atom font )

Category: wxGrid

Sets the font for row and column labels.


wxGrid

[proc]
set_grid_label_text_color
( atom grid, atom color )

Category: wxGrid

Sets the colour for row and column label text.


wxGrid

[proc]
set_grid_line_color
( atom grid, atom colour )

Category: wxGrid

Change the color of the lines in the grid.


wxGrid

[proc]
set_grid_margins
( atom grid, atom extra_width, atom extra_height )

Category: wxGrid

A grid may occupy more space than needed for its rows/columns. This function allows to set how big this extra space is.


wxGrid

[proc]
set_grid_scroll_line
( atom grid, sequence xy )

Category: wxGrid

Sets the number of pixels per scroll increment. The default is 15. Sometimes wxGrid has trouble setting the scrollbars correctly due to rounding errors: setting this to 1 can help.


wxGrid

[proc]
set_grid_selection_background
( atom grid, atom color )

Category: wxGrid


wxGrid

[proc]
set_grid_selection_foreground
( atom grid, atom color )

Category: wxGrid


wxGrid

[proc]
set_grid_selection_mode
( atom grid, integer mode )

Category: wxGrid

Set the selection behaviour of the grid.

mode can be one of the following:


wxGrid

[proc]
set_grid_size
( atom grid, atom rows, atom cols )

Category: wxGrid

Adds or deletes columns or rows as required.


wxGrid

[proc]
set_row_label
( atom grid, integer row, sequence text )

Category: wxGrid

Changes the label of a row.


wxGrid

[proc]
set_row_label_align
( atom grid, atom horiz, atom vert )

Category: wxGrid

Use wxLEFT, wxRIGHT and wxTOP, wxBOTTOM (or zero for center)


wxGrid

[proc]
set_row_label_size
( atom grid, integer width )

Category: wxGrid

This sets the labels of rows in a wxGrid to be 'width' pixels high.


wxGrid

[proc]
set_row_size
( atom grid, atom row, atom height )

Category: wxGrid

Sets the height of the specified row.

This function does not refresh the grid. If you are calling it outside of a begin_batch end_batch block you can use refresh_grid to see the changes.

Note: wxGrid sets up arrays to store individual row and column sizes when non-default sizes are used. The memory requirements for this could become prohibitive if your grid is very large.


wxGrid

[proc]
show_cell_edit_control
( atom grid )

Category: wxGrid

Displays the in-place cell edit control for the current cell.