+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Name: grid.tex
+%% Purpose: wxGrid
+%% Author:
+%% Modified by: Santiago Palacios
+%% Created:
+%% RCS-ID: $Id$
+%% Copyright: (c) wxWidgets
+%% License: wxWindows license
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
\section{\class{wxGrid}}\label{wxgrid}
wxGrid and its related classes are used for displaying and editing tabular
\section{\class{wxGrid}}\label{wxgrid}
wxGrid and its related classes are used for displaying and editing tabular
want to have a look at the \helpref{wxGrid classes overview}{gridoverview} to see
how things have changed. The new grid classes are reasonably backward-compatible
but there are some exceptions. There are also easier ways of doing many things compared to
want to have a look at the \helpref{wxGrid classes overview}{gridoverview} to see
how things have changed. The new grid classes are reasonably backward-compatible
but there are some exceptions. There are also easier ways of doing many things compared to
\helpref{wxGridSizeEvent}{wxgridsizeevent} parameter.
The ...\_CMD\_... variants also take a window identifier.
\helpref{wxGridSizeEvent}{wxgridsizeevent} parameter.
The ...\_CMD\_... variants also take a window identifier.
\helpref{wxGridRangeSelectEvent}{wxgridrangeselectevent} parameter.
The ...\_CMD\_... variant also takes a window identifier.
\helpref{wxGridRangeSelectEvent}{wxgridrangeselectevent} parameter.
The ...\_CMD\_... variant also takes a window identifier.
\helpref{wxGridEditorCreatedEvent}{wxgrideditorcreatedevent} parameter.
The ...\_CMD\_... variant also takes a window identifier.
\helpref{wxGridEditorCreatedEvent}{wxgrideditorcreatedevent} parameter.
The ...\_CMD\_... variant also takes a window identifier.
\membersection{Constructors and initialization}\label{wxgridconstructors}
\helpref{wxGrid}{wxgridctor}\\
\membersection{Constructors and initialization}\label{wxgridconstructors}
\helpref{wxGrid}{wxgridctor}\\
\membersection{Selection functions}\label{wxgridselectionfunctions}
\helpref{wxGrid::ClearSelection}{wxgridclearselection}\\
\membersection{Selection functions}\label{wxgridselectionfunctions}
\helpref{wxGrid::ClearSelection}{wxgridclearselection}\\
\func{}{wxGrid}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{long }{style = wxWANTS\_CHARS}, \param{const wxString\& }{name = wxPanelNameStr}}
\func{}{wxGrid}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{long }{style = wxWANTS\_CHARS}, \param{const wxString\& }{name = wxPanelNameStr}}
Destructor. This will also destroy the associated grid table unless you passed a table
object to the grid and specified that the grid should not take ownership of the
Destructor. This will also destroy the associated grid table unless you passed a table
object to the grid and specified that the grid should not take ownership of the
Appends one or more new columns to the right of the grid and returns true if
successful. The updateLabels argument is not used at present.
Appends one or more new columns to the right of the grid and returns true if
successful. The updateLabels argument is not used at present.
-If you are using a derived grid table class you will need to override
-\helpref{wxGridTableBase::AppendCols}{wxgridtablebaseappendcols}. See
-\helpref{wxGrid::InsertCols}{wxgridinsertcols} for further information.
+If you are using a derived grid table class you will need to override
+\helpref{wxGridTableBase::AppendCols}{wxgridtablebaseappendcols}. See
+\helpref{wxGrid::InsertCols}{wxgridinsertcols} for further information.
+
+
Appends one or more new rows to the bottom of the grid and returns true if
successful. The updateLabels argument is not used at present.
Appends one or more new rows to the bottom of the grid and returns true if
successful. The updateLabels argument is not used at present.
-If you are using a derived grid table class you will need to override
-\helpref{wxGridTableBase::AppendRows}{wxgridtablebaseappendrows}. See
-\helpref{wxGrid::InsertRows}{wxgridinsertrows} for further information.
+If you are using a derived grid table class you will need to override
+\helpref{wxGridTableBase::AppendRows}{wxgridtablebaseappendrows}. See
+\helpref{wxGrid::InsertRows}{wxgridinsertrows} for further information.
+
+
\membersection{wxGrid::AutoSizeColOrRow}\label{wxgridautosizecolorrow}
\func{void}{AutoSizeColOrRow}{\param{int }{n}, \param{bool }{setAsMin}, \param{bool }{column}}
\membersection{wxGrid::AutoSizeColOrRow}\label{wxgridautosizecolorrow}
\func{void}{AutoSizeColOrRow}{\param{int }{n}, \param{bool }{setAsMin}, \param{bool }{column}}
\membersection{wxGrid::BeginBatch}\label{wxgridbeginbatch}
\func{void}{BeginBatch}{\void}
Increments the grid's batch count. When the count is greater than zero repainting of
\membersection{wxGrid::BeginBatch}\label{wxgridbeginbatch}
\func{void}{BeginBatch}{\void}
Increments the grid's batch count. When the count is greater than zero repainting of
\helpref{wxGrid::EndBatch}{wxgridendbatch}. Code that does a lot of grid
modification can be enclosed between BeginBatch and EndBatch calls to avoid
screen flicker. The final EndBatch will cause the grid to be repainted.
\helpref{wxGrid::EndBatch}{wxgridendbatch}. Code that does a lot of grid
modification can be enclosed between BeginBatch and EndBatch calls to avoid
screen flicker. The final EndBatch will cause the grid to be repainted.
\membersection{wxGrid::BlockToDeviceRect}\label{wxgridblocktodevicerect}
\func{wxRect}{BlockToDeviceRect}{\param{const wxGridCellCoords \& }{topLeft}, \param{const wxGridCellCoords \& }{bottomRight}}
\membersection{wxGrid::BlockToDeviceRect}\label{wxgridblocktodevicerect}
\func{wxRect}{BlockToDeviceRect}{\param{const wxGridCellCoords \& }{topLeft}, \param{const wxGridCellCoords \& }{bottomRight}}
+
+\membersection{wxGrid::CanDragColMove}\label{wxgridcandragcolmove}
+
+\func{bool}{CanDragColMove}{\void}
+
+Returns true if columns can be moved by dragging with the mouse. Columns can be moved
+by dragging on their labels.
+
+
+
\membersection{wxGrid::CanDragColSize}\label{wxgridcandragcolsize}
\func{bool}{CanDragColSize}{\void}
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
\membersection{wxGrid::CanDragColSize}\label{wxgridcandragcolsize}
\func{bool}{CanDragColSize}{\void}
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
\membersection{wxGrid::CanDragRowSize}\label{wxgridcandragrowsize}
\func{bool}{CanDragRowSize}{\void}
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
\membersection{wxGrid::CanDragRowSize}\label{wxgridcandragrowsize}
\func{bool}{CanDragRowSize}{\void}
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
\membersection{wxGrid::CanDragGridSize}\label{wxgridcandraggridsize}
\func{bool}{CanDragGridSize}{\void}
Return true if the dragging of grid lines to resize rows and columns is enabled or false otherwise.
\membersection{wxGrid::CanDragGridSize}\label{wxgridcandraggridsize}
\func{bool}{CanDragGridSize}{\void}
Return true if the dragging of grid lines to resize rows and columns is enabled or false otherwise.
\membersection{wxGrid::CanEnableCellControl}\label{wxgridcanenablecellcontrol}
\constfunc{bool}{CanEnableCellControl}{\void}
\membersection{wxGrid::CanEnableCellControl}\label{wxgridcanenablecellcontrol}
\constfunc{bool}{CanEnableCellControl}{\void}
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).
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).
\membersection{wxGrid::CanHaveAttributes}\label{wxgridcanhaveattributes}
\func{bool}{CanHaveAttributes}{\void}
Do we have some place to store attributes in?
\membersection{wxGrid::CanHaveAttributes}\label{wxgridcanhaveattributes}
\func{bool}{CanHaveAttributes}{\void}
Do we have some place to store attributes in?
\membersection{wxGrid::CellToRect}\label{wxgridcelltorect}
\func{wxRect}{CellToRect}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::CellToRect}\label{wxgridcelltorect}
\func{wxRect}{CellToRect}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::ClearGrid}\label{wxgridcleargrid}
\func{void}{ClearGrid}{\void}
Clears all data in the underlying grid table and repaints the grid. The table is not deleted by
\membersection{wxGrid::ClearGrid}\label{wxgridcleargrid}
\func{void}{ClearGrid}{\void}
Clears all data in the underlying grid table and repaints the grid. The table is not deleted by
\membersection{wxGrid::ClearSelection}\label{wxgridclearselection}
\func{void}{ClearSelection}{\void}
Deselects all cells that are currently selected.
\membersection{wxGrid::ClearSelection}\label{wxgridclearselection}
\func{void}{ClearSelection}{\void}
Deselects all cells that are currently selected.
\membersection{wxGrid::CreateGrid}\label{wxgridcreategrid}
\func{bool}{CreateGrid}{\param{int }{numRows}, \param{int }{numCols}, \param{wxGrid::wxGridSelectionModes }{selmode = wxGrid::wxGridSelectCells}}
\membersection{wxGrid::CreateGrid}\label{wxgridcreategrid}
\func{bool}{CreateGrid}{\param{int }{numRows}, \param{int }{numCols}, \param{wxGrid::wxGridSelectionModes }{selmode = wxGrid::wxGridSelectCells}}
For applications with more complex data types or relationships, or for
dealing with very large datasets, you should derive your own grid table
For applications with more complex data types or relationships, or for
dealing with very large datasets, you should derive your own grid table
Deletes one or more columns from a grid starting at the specified position and returns
true if successful. The updateLabels argument is not used at present.
Deletes one or more columns from a grid starting at the specified position and returns
true if successful. The updateLabels argument is not used at present.
-If you are using a derived grid table class you will need to override
-\helpref{wxGridTableBase::DeleteCols}{wxgridtablebasedeletecols}. See
+If you are using a derived grid table class you will need to override
+\helpref{wxGridTableBase::DeleteCols}{wxgridtablebasedeletecols}. See
\membersection{wxGrid::DeleteRows}\label{wxgriddeleterows}
\func{bool}{DeleteRows}{\param{int }{pos = 0}, \param{int }{numRows = 1}, \param{bool }{updateLabels = true}}
\membersection{wxGrid::DeleteRows}\label{wxgriddeleterows}
\func{bool}{DeleteRows}{\param{int }{pos = 0}, \param{int }{numRows = 1}, \param{bool }{updateLabels = true}}
Deletes one or more rows from a grid starting at the specified position and returns
true if successful. The updateLabels argument is not used at present.
Deletes one or more rows from a grid starting at the specified position and returns
true if successful. The updateLabels argument is not used at present.
-If you are using a derived grid table class you will need to override
-\helpref{wxGridTableBase::DeleteRows}{wxgridtablebasedeleterows}. See
+If you are using a derived grid table class you will need to override
+\helpref{wxGridTableBase::DeleteRows}{wxgridtablebasedeleterows}. See
\membersection{wxGrid::DisableCellEditControl}\label{wxgriddisablecelleditcontrol}
\func{void}{DisableCellEditControl}{\void}
\membersection{wxGrid::DisableCellEditControl}\label{wxgriddisablecelleditcontrol}
\func{void}{DisableCellEditControl}{\void}
+
+
+\membersection{wxGrid::DisableDragColMove}\label{wxgriddisabledragcolmove}
+
+\func{void}{DisableDragColMove}{\void}
+
+Disables column moving by dragging with the mouse. Equivalent to passing false to
+\helpref{wxGrid::EnableDragColMove}{wxgridenabledragcolmove}.
+
+
+
\membersection{wxGrid::DisableDragColSize}\label{wxgriddisabledragcolsize}
\func{void}{DisableDragColSize}{\void}
\membersection{wxGrid::DisableDragColSize}\label{wxgriddisabledragcolsize}
\func{void}{DisableDragColSize}{\void}
-Disables column sizing by dragging with the mouse. Equivalent to passing false to
-\helpref{wxGrid::EnableDragColSize}{wxgridenabledragcolsize}.
+Disables column sizing by dragging with the mouse. Equivalent to passing false to
+\helpref{wxGrid::EnableDragColSize}{wxgridenabledragcolsize}.
+
+
Disable mouse dragging of grid lines to resize rows and columns. Equivalent to passing
false to \helpref{wxGrid::EnableDragGridSize}{wxgridenabledraggridsize}
Disable mouse dragging of grid lines to resize rows and columns. Equivalent to passing
false to \helpref{wxGrid::EnableDragGridSize}{wxgridenabledraggridsize}
\membersection{wxGrid::DisableDragRowSize}\label{wxgriddisabledragrowsize}
\func{void}{DisableDragRowSize}{\void}
\membersection{wxGrid::DisableDragRowSize}\label{wxgriddisabledragrowsize}
\func{void}{DisableDragRowSize}{\void}
-Disables row sizing by dragging with the mouse. Equivalent to passing false to
-\helpref{wxGrid::EnableDragRowSize}{wxgridenabledragrowsize}.
+Disables row sizing by dragging with the mouse. Equivalent to passing false to
+\helpref{wxGrid::EnableDragRowSize}{wxgridenabledragrowsize}.
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.
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.
\membersection{wxGrid::EnableDragColSize}\label{wxgridenabledragcolsize}
\func{void}{EnableDragColSize}{\param{bool }{enable = true}}
Enables or disables column sizing by dragging with the mouse.
\membersection{wxGrid::EnableDragColSize}\label{wxgridenabledragcolsize}
\func{void}{EnableDragColSize}{\param{bool }{enable = true}}
Enables or disables column sizing by dragging with the mouse.
\membersection{wxGrid::EnableDragGridSize}\label{wxgridenabledraggridsize}
\func{void}{EnableDragGridSize}{\param{bool }{enable = true}}
Enables or disables row and column resizing by dragging gridlines with the mouse.
\membersection{wxGrid::EnableDragGridSize}\label{wxgridenabledraggridsize}
\func{void}{EnableDragGridSize}{\param{bool }{enable = true}}
Enables or disables row and column resizing by dragging gridlines with the mouse.
\membersection{wxGrid::EnableDragRowSize}\label{wxgridenabledragrowsize}
\func{void}{EnableDragRowSize}{\param{bool }{enable = true}}
Enables or disables row sizing by dragging with the mouse.
\membersection{wxGrid::EnableDragRowSize}\label{wxgridenabledragrowsize}
\func{void}{EnableDragRowSize}{\param{bool }{enable = true}}
Enables or disables row sizing by dragging with the mouse.
\membersection{wxGrid::EnableEditing}\label{wxgridenableediting}
\func{void}{EnableEditing}{\param{bool }{edit}}
\membersection{wxGrid::EnableEditing}\label{wxgridenableediting}
\func{void}{EnableEditing}{\param{bool }{edit}}
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
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
-For more information about controlling grid cell attributes see the
-\helpref{wxGridCellAttr}{wxgridcellattr} cell attribute class and the
+For more information about controlling grid cell attributes see the
+\helpref{wxGridCellAttr}{wxgridcellattr} cell attribute class and the
\membersection{wxGrid::EnableGridLines}\label{wxgridenablegridlines}
\func{void}{EnableGridLines}{\param{bool }{enable = true}}
Turns the drawing of grid lines on or off.
\membersection{wxGrid::EnableGridLines}\label{wxgridenablegridlines}
\func{void}{EnableGridLines}{\param{bool }{enable = true}}
Turns the drawing of grid lines on or off.
\membersection{wxGrid::EndBatch}\label{wxgridendbatch}
\func{void}{EndBatch}{\void}
Decrements the grid's batch count. When the count is greater than zero repainting of
\membersection{wxGrid::EndBatch}\label{wxgridendbatch}
\func{void}{EndBatch}{\void}
Decrements the grid's batch count. When the count is greater than zero repainting of
\helpref{wxGrid::BeginBatch}{wxgridbeginbatch} must be matched by a later call to
EndBatch. Code that does a lot of grid modification can be enclosed between
BeginBatch and EndBatch calls to avoid screen flicker. The final EndBatch will
cause the grid to be repainted.
\helpref{wxGrid::BeginBatch}{wxgridbeginbatch} must be matched by a later call to
EndBatch. Code that does a lot of grid modification can be enclosed between
BeginBatch and EndBatch calls to avoid screen flicker. The final EndBatch will
cause the grid to be repainted.
\membersection{wxGrid::ForceRefresh}\label{wxgridforcerefresh}
\func{void}{ForceRefresh}{\void}
Causes immediate repainting of the grid. Use this instead of the usual wxWindow::Refresh.
\membersection{wxGrid::ForceRefresh}\label{wxgridforcerefresh}
\func{void}{ForceRefresh}{\void}
Causes immediate repainting of the grid. Use this instead of the usual wxWindow::Refresh.
without (yet) matching calls to \helpref{wxGrid::EndBatch}{wxgridendbatch}. While
the grid's batch count is greater than zero the display will not be updated.
without (yet) matching calls to \helpref{wxGrid::EndBatch}{wxgridendbatch}. While
the grid's batch count is greater than zero the display will not be updated.
\membersection{wxGrid::GetCellAlignment}\label{wxgridgetcellalignment}
\func{void}{GetCellAlignment}{\param{int }{row}, \param{int }{col}, \param{int* }{horiz}, \param{int* }{vert}}
\membersection{wxGrid::GetCellAlignment}\label{wxgridgetcellalignment}
\func{void}{GetCellAlignment}{\param{int }{row}, \param{int }{col}, \param{int* }{horiz}, \param{int* }{vert}}
\perlnote{This method only takes the parameters {\tt row} and {\tt col} and
returns a 2-element list {\tt ( horiz, vert )}.}
\perlnote{This method only takes the parameters {\tt row} and {\tt col} and
returns a 2-element list {\tt ( horiz, vert )}.}
\membersection{wxGrid::GetCellBackgroundColour}\label{wxgridgetcellbackgroundcolour}
\func{wxColour}{GetCellBackgroundColour}{\param{int }{row}, \param{int }{col}}
Returns the background colour of the cell at the specified location.
\membersection{wxGrid::GetCellBackgroundColour}\label{wxgridgetcellbackgroundcolour}
\func{wxColour}{GetCellBackgroundColour}{\param{int }{row}, \param{int }{col}}
Returns the background colour of the cell at the specified location.
\membersection{wxGrid::GetCellEditor}\label{wxgridgetcelleditor}
\func{wxGridCellEditor*}{GetCellEditor}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::GetCellEditor}\label{wxgridgetcelleditor}
\func{wxGridCellEditor*}{GetCellEditor}{\param{int }{row}, \param{int }{col}}
See \helpref{wxGridCellEditor}{wxgridcelleditor} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
See \helpref{wxGridCellEditor}{wxgridcelleditor} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
\membersection{wxGrid::GetCellFont}\label{wxgridgetcellfont}
\func{wxFont}{GetCellFont}{\param{int }{row}, \param{int }{col}}
Returns the font for text in the grid cell at the specified location.
\membersection{wxGrid::GetCellFont}\label{wxgridgetcellfont}
\func{wxFont}{GetCellFont}{\param{int }{row}, \param{int }{col}}
Returns the font for text in the grid cell at the specified location.
\membersection{wxGrid::GetCellRenderer}\label{wxgridgetcellrenderer}
\func{wxGridCellRenderer*}{GetCellRenderer}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::GetCellRenderer}\label{wxgridgetcellrenderer}
\func{wxGridCellRenderer*}{GetCellRenderer}{\param{int }{row}, \param{int }{col}}
See \helpref{wxGridCellRenderer}{wxgridcellrenderer} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
See \helpref{wxGridCellRenderer}{wxgridcellrenderer} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
\membersection{wxGrid::GetCellTextColour}\label{wxgridgetcelltextcolour}
\func{wxColour}{GetCellTextColour}{\param{int }{row}, \param{int }{col}}
Returns the text colour for the grid cell at the specified location.
\membersection{wxGrid::GetCellTextColour}\label{wxgridgetcelltextcolour}
\func{wxColour}{GetCellTextColour}{\param{int }{row}, \param{int }{col}}
Returns the text colour for the grid cell at the specified location.
\membersection{wxGrid::GetCellValue}\label{wxgridgetcellvalue}
\func{wxString}{GetCellValue}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::GetCellValue}\label{wxgridgetcellvalue}
\func{wxString}{GetCellValue}{\param{int }{row}, \param{int }{col}}
Returns the string contained in the cell at the specified location. For simple applications where a
grid object automatically uses a default grid table of string values you use this function together
Returns the string contained in the cell at the specified location. For simple applications where a
grid object automatically uses a default grid table of string values you use this function together
For more complex applications where you have derived your own grid table class that contains
various data types (e.g. numeric, boolean or user-defined custom types) then you only use this
For more complex applications where you have derived your own grid table class that contains
various data types (e.g. numeric, boolean or user-defined custom types) then you only use this
See \helpref{wxGridTableBase::CanGetValueAs}{wxgridtablebasecangetvalueas}
and the \helpref{wxGrid overview}{gridoverview} for more information.
See \helpref{wxGridTableBase::CanGetValueAs}{wxgridtablebasecangetvalueas}
and the \helpref{wxGrid overview}{gridoverview} for more information.
\membersection{wxGrid::GetColLeft}\label{wxgridgetcolleft}
\constfunc{int}{GetColLeft}{\param{int }{col}}
\membersection{wxGrid::GetColLeft}\label{wxgridgetcolleft}
\constfunc{int}{GetColLeft}{\param{int }{col}}
\membersection{wxGrid::GetColLabelAlignment}\label{wxgridgetcollabelalignment}
\func{void}{GetColLabelAlignment}{\param{int* }{horiz}, \param{int* }{vert}}
\membersection{wxGrid::GetColLabelAlignment}\label{wxgridgetcollabelalignment}
\func{void}{GetColLabelAlignment}{\param{int* }{horiz}, \param{int* }{vert}}
\perlnote{This method takes no parameters and
returns a 2-element list {\tt ( horiz, vert )}.}
\perlnote{This method takes no parameters and
returns a 2-element list {\tt ( horiz, vert )}.}
\membersection{wxGrid::GetColLabelSize}\label{wxgridgetcollabelsize}
\func{int}{GetColLabelSize}{\void}
Returns the current height of the column labels.
\membersection{wxGrid::GetColLabelSize}\label{wxgridgetcollabelsize}
\func{int}{GetColLabelSize}{\void}
Returns the current height of the column labels.
\membersection{wxGrid::GetColLabelValue}\label{wxgridgetcollabelvalue}
\func{wxString}{GetColLabelValue}{\param{int }{col}}
Returns the specified column label. The default grid table class provides column labels of
\membersection{wxGrid::GetColLabelValue}\label{wxgridgetcollabelvalue}
\func{wxString}{GetColLabelValue}{\param{int }{col}}
Returns the specified column label. The default grid table class provides column labels of
-the form A,B...Z,AA,AB...ZZ,AAA... If you are using a custom grid table you can override
+the form A,B...Z,AA,AB...ZZ,AAA... If you are using a custom grid table you can override
This returns the value of the lowest column width that can be handled correctly. See
member \helpref{SetColMinimalAcceptableWidth}{wxgridsetcolminimalacceptablewidth} for details.
This returns the value of the lowest column width that can be handled correctly. See
member \helpref{SetColMinimalAcceptableWidth}{wxgridsetcolminimalacceptablewidth} for details.
\membersection{wxGrid::GetColMinimalWidth}\label{wxgridgetcolminimalwidth}
\constfunc{int}{GetColMinimalWidth}{\param{int }{col}}
\membersection{wxGrid::GetColMinimalWidth}\label{wxgridgetcolminimalwidth}
\constfunc{int}{GetColMinimalWidth}{\param{int }{col}}
\membersection{wxGrid::GetColRight}\label{wxgridgetcolright}
\constfunc{int}{GetColRight}{\param{int }{col}}
\membersection{wxGrid::GetColRight}\label{wxgridgetcolright}
\constfunc{int}{GetColRight}{\param{int }{col}}
\membersection{wxGrid::GetColSize}\label{wxgridgetcolsize}
\func{int}{GetColSize}{\param{int }{col}}
Returns the width of the specified column.
\membersection{wxGrid::GetColSize}\label{wxgridgetcolsize}
\func{int}{GetColSize}{\param{int }{col}}
Returns the width of the specified column.
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.
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.
\membersection{wxGrid::GetDefaultCellBackgroundColour}\label{wxgridgetdefaultcellbackgroundcolour}
\func{wxColour}{GetDefaultCellBackgroundColour}{\void}
Returns the current default background colour for grid cells.
\membersection{wxGrid::GetDefaultCellBackgroundColour}\label{wxgridgetdefaultcellbackgroundcolour}
\func{wxColour}{GetDefaultCellBackgroundColour}{\void}
Returns the current default background colour for grid cells.
\membersection{wxGrid::GetDefaultCellFont}\label{wxgridgetdefaultcellfont}
\func{wxFont}{GetDefaultCellFont}{\void}
Returns the current default font for grid cell text.
\membersection{wxGrid::GetDefaultCellFont}\label{wxgridgetdefaultcellfont}
\func{wxFont}{GetDefaultCellFont}{\void}
Returns the current default font for grid cell text.
\membersection{wxGrid::GetDefaultCellTextColour}\label{wxgridgetdefaultcelltextcolour}
\func{wxColour}{GetDefaultCellTextColour}{\void}
Returns the current default colour for grid cell text.
\membersection{wxGrid::GetDefaultCellTextColour}\label{wxgridgetdefaultcelltextcolour}
\func{wxColour}{GetDefaultCellTextColour}{\void}
Returns the current default colour for grid cell text.
\membersection{wxGrid::GetDefaultColLabelSize}\label{wxgridgetdefaultcollabelsize}
\func{int}{GetDefaultColLabelSize}{\void}
Returns the default height for column labels.
\membersection{wxGrid::GetDefaultColLabelSize}\label{wxgridgetdefaultcollabelsize}
\func{int}{GetDefaultColLabelSize}{\void}
Returns the default height for column labels.
\membersection{wxGrid::GetDefaultColSize}\label{wxgridgetdefaultcolsize}
\func{int}{GetDefaultColSize}{\void}
Returns the current default width for grid columns.
\membersection{wxGrid::GetDefaultColSize}\label{wxgridgetdefaultcolsize}
\func{int}{GetDefaultColSize}{\void}
Returns the current default width for grid columns.
\membersection{wxGrid::GetDefaultEditor}\label{wxgridgetdefaulteditor}
\constfunc{wxGridCellEditor*}{GetDefaultEditor}{\void}
\membersection{wxGrid::GetDefaultEditor}\label{wxgridgetdefaulteditor}
\constfunc{wxGridCellEditor*}{GetDefaultEditor}{\void}
See \helpref{wxGridCellEditor}{wxgridcelleditor} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
See \helpref{wxGridCellEditor}{wxgridcelleditor} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
\membersection{wxGrid::GetDefaultEditorForCell}\label{wxgridgetdefaulteditorforcell}
\constfunc{wxGridCellEditor*}{GetDefaultEditorForCell}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::GetDefaultEditorForCell}\label{wxgridgetdefaulteditorforcell}
\constfunc{wxGridCellEditor*}{GetDefaultEditorForCell}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::GetDefaultEditorForType}\label{wxgridgetdefaulteditorfortype}
\constfunc{wxGridCellEditor*}{GetDefaultEditorForType}{\param{const wxString\& }{typeName}}
\membersection{wxGrid::GetDefaultEditorForType}\label{wxgridgetdefaulteditorfortype}
\constfunc{wxGridCellEditor*}{GetDefaultEditorForType}{\param{const wxString\& }{typeName}}
\membersection{wxGrid::GetDefaultRenderer}\label{wxgridgetdefaultrenderer}
\constfunc{wxGridCellRenderer*}{GetDefaultRenderer}{\void}
\membersection{wxGrid::GetDefaultRenderer}\label{wxgridgetdefaultrenderer}
\constfunc{wxGridCellRenderer*}{GetDefaultRenderer}{\void}
See \helpref{wxGridCellRenderer}{wxgridcellrenderer} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
See \helpref{wxGridCellRenderer}{wxgridcellrenderer} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
\membersection{wxGrid::GetDefaultRendererForCell}\label{wxgridgetdefaultrendererforcell}
\constfunc{wxGridCellRenderer*}{GetDefaultRendererForCell}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::GetDefaultRendererForCell}\label{wxgridgetdefaultrendererforcell}
\constfunc{wxGridCellRenderer*}{GetDefaultRendererForCell}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::GetDefaultRendererForType}\label{wxgridgetdefaultrendererfortype}
\constfunc{wxGridCellRenderer*}{GetDefaultRendererForType}{\param{const wxString\& }{typeName}}
\membersection{wxGrid::GetDefaultRendererForType}\label{wxgridgetdefaultrendererfortype}
\constfunc{wxGridCellRenderer*}{GetDefaultRendererForType}{\param{const wxString\& }{typeName}}
\membersection{wxGrid::GetDefaultRowSize}\label{wxgridgetdefaultrowsize}
\func{int}{GetDefaultRowSize}{\void}
Returns the current default height for grid rows.
\membersection{wxGrid::GetDefaultRowSize}\label{wxgridgetdefaultrowsize}
\func{int}{GetDefaultRowSize}{\void}
Returns the current default height for grid rows.
\membersection{wxGrid::GetGridCursorCol}\label{wxgridgetgridcursorcol}
\func{int}{GetGridCursorCol}{\void}
Returns the current grid cell column position.
\membersection{wxGrid::GetGridCursorCol}\label{wxgridgetgridcursorcol}
\func{int}{GetGridCursorCol}{\void}
Returns the current grid cell column position.
\membersection{wxGrid::GetGridCursorRow}\label{wxgridgetgridcursorrow}
\func{int}{GetGridCursorRow}{\void}
Returns the current grid cell row position.
\membersection{wxGrid::GetGridCursorRow}\label{wxgridgetgridcursorrow}
\func{int}{GetGridCursorRow}{\void}
Returns the current grid cell row position.
\membersection{wxGrid::GetGridLineColour}\label{wxgridgetgridlinecolour}
\func{wxColour}{GetGridLineColour}{\void}
Returns the colour used for grid lines.
\membersection{wxGrid::GetGridLineColour}\label{wxgridgetgridlinecolour}
\func{wxColour}{GetGridLineColour}{\void}
Returns the colour used for grid lines.
\membersection{wxGrid::GridLinesEnabled}\label{wxgridgridlinesenabled}
\func{bool}{GridLinesEnabled}{\void}
Returns true if drawing of grid lines is turned on, false otherwise.
\membersection{wxGrid::GridLinesEnabled}\label{wxgridgridlinesenabled}
\func{bool}{GridLinesEnabled}{\void}
Returns true if drawing of grid lines is turned on, false otherwise.
\membersection{wxGrid::GetLabelBackgroundColour}\label{wxgridgetlabelbackgroundcolour}
\func{wxColour}{GetLabelBackgroundColour}{\void}
Returns the colour used for the background of row and column labels.
\membersection{wxGrid::GetLabelBackgroundColour}\label{wxgridgetlabelbackgroundcolour}
\func{wxColour}{GetLabelBackgroundColour}{\void}
Returns the colour used for the background of row and column labels.
\membersection{wxGrid::GetLabelFont}\label{wxgridgetlabelfont}
\func{wxFont}{GetLabelFont}{\void}
Returns the font used for row and column labels.
\membersection{wxGrid::GetLabelFont}\label{wxgridgetlabelfont}
\func{wxFont}{GetLabelFont}{\void}
Returns the font used for row and column labels.
\membersection{wxGrid::GetLabelTextColour}\label{wxgridgetlabeltextcolour}
\func{wxColour}{GetLabelTextColour}{\void}
Returns the colour used for row and column label text.
\membersection{wxGrid::GetLabelTextColour}\label{wxgridgetlabeltextcolour}
\func{wxColour}{GetLabelTextColour}{\void}
Returns the colour used for row and column label text.
\membersection{wxGrid::GetNumberRows}\label{wxgridgetnumberrows}
\func{int}{GetNumberRows}{\void}
Returns the total number of grid rows (actually the number of rows in the underlying grid table).
\membersection{wxGrid::GetNumberRows}\label{wxgridgetnumberrows}
\func{int}{GetNumberRows}{\void}
Returns the total number of grid rows (actually the number of rows in the underlying grid table).
-This function must be public for compatibility.
-
-\membersection{wxGrid::GetRowTop}\label{wxgridgetrowtop}
-
-\constfunc{int}{GetRowTop}{\param{int }{row}}
+\membersection{wxGrid::GetOrCreateCellAttr}\label{wxgridgetorcreatecellattr}
\membersection{wxGrid::GetRowMinimalHeight}\label{wxgridgetrowminimalheight}
\constfunc{int}{GetRowMinimalHeight}{\param{int }{col}}
\membersection{wxGrid::GetRowMinimalHeight}\label{wxgridgetrowminimalheight}
\constfunc{int}{GetRowMinimalHeight}{\param{int }{col}}
\membersection{wxGrid::GetRowLabelAlignment}\label{wxgridgetrowlabelalignment}
\func{void}{GetRowLabelAlignment}{\param{int* }{horiz}, \param{int* }{vert}}
\membersection{wxGrid::GetRowLabelAlignment}\label{wxgridgetrowlabelalignment}
\func{void}{GetRowLabelAlignment}{\param{int* }{horiz}, \param{int* }{vert}}
\perlnote{This method takes no parameters and
returns a 2-element list {\tt ( horiz, vert )}.}
\perlnote{This method takes no parameters and
returns a 2-element list {\tt ( horiz, vert )}.}
\membersection{wxGrid::GetRowLabelSize}\label{wxgridgetrowlabelsize}
\func{int}{GetRowLabelSize}{\void}
Returns the current width of the row labels.
\membersection{wxGrid::GetRowLabelSize}\label{wxgridgetrowlabelsize}
\func{int}{GetRowLabelSize}{\void}
Returns the current width of the row labels.
\membersection{wxGrid::GetRowLabelValue}\label{wxgridgetrowlabelvalue}
\func{wxString}{GetRowLabelValue}{\param{int }{row}}
Returns the specified row label. The default grid table class provides numeric row labels.
\membersection{wxGrid::GetRowLabelValue}\label{wxgridgetrowlabelvalue}
\func{wxString}{GetRowLabelValue}{\param{int }{row}}
Returns the specified row label. The default grid table class provides numeric row labels.
-\membersection{wxGrid::GetScrollLinesY}\label{wxgridgetscrolllinesy}
+\wxheading{See also}
+
+\helpref{wxGrid::GetScrollLineY}{wxgridgetscrollliney},\rtfsp
+\helpref{wxGrid::SetScrollLineX}{wxgridsetscrolllinex},\rtfsp
+\helpref{wxGrid::SetScrollLineY}{wxgridsetscrollliney}
+
\membersection{wxGrid::GetSelectionMode}\label{wxgridgetselectionmode}
\constfunc{wxGrid::wxGridSelectionModes}{GetSelectionMode}{\void}
Returns the current selection mode, see \helpref{wxGrid::SetSelectionMode}{wxgridsetselectionmode}.
\membersection{wxGrid::GetSelectionMode}\label{wxgridgetselectionmode}
\constfunc{wxGrid::wxGridSelectionModes}{GetSelectionMode}{\void}
Returns the current selection mode, see \helpref{wxGrid::SetSelectionMode}{wxgridsetselectionmode}.
\membersection{wxGrid::GetSelectedCells}\label{wxgridgetselectedcells}
\constfunc{wxGridCellCoordsArray}{GetSelectedCells}{\void}
Returns an array of singly selected cells.
\membersection{wxGrid::GetSelectedCells}\label{wxgridgetselectedcells}
\constfunc{wxGridCellCoordsArray}{GetSelectedCells}{\void}
Returns an array of singly selected cells.
\membersection{wxGrid::GetSelectedCols}\label{wxgridgetselectedcols}
\constfunc{wxArrayInt}{GetSelectedCols}{\void}
Returns an array of selected cols.
\membersection{wxGrid::GetSelectedCols}\label{wxgridgetselectedcols}
\constfunc{wxArrayInt}{GetSelectedCols}{\void}
Returns an array of selected cols.
\membersection{wxGrid::GetSelectedRows}\label{wxgridgetselectedrows}
\constfunc{wxArrayInt}{GetSelectedRows}{\void}
Returns an array of selected rows.
\membersection{wxGrid::GetSelectedRows}\label{wxgridgetselectedrows}
\constfunc{wxArrayInt}{GetSelectedRows}{\void}
Returns an array of selected rows.
\membersection{wxGrid::GetSelectionBackground}\label{wxgridgetselectionbackground}
\constfunc{wxColour}{GetSelectionBackground}{\void}
\membersection{wxGrid::GetSelectionBackground}\label{wxgridgetselectionbackground}
\constfunc{wxColour}{GetSelectionBackground}{\void}
\membersection{wxGrid::GetSelectionBlockTopLeft}\label{wxgridgetselectionblocktopleft}
\constfunc{wxGridCellCoordsArray}{GetSelectionBlockTopLeft}{\void}
\membersection{wxGrid::GetSelectionBlockTopLeft}\label{wxgridgetselectionblocktopleft}
\constfunc{wxGridCellCoordsArray}{GetSelectionBlockTopLeft}{\void}
\membersection{wxGrid::GetSelectionBlockBottomRight}\label{wxgridgetselectionblockbottomright}
\constfunc{wxGridCellCoordsArray}{GetSelectionBlockBottomRight}{\void}
\membersection{wxGrid::GetSelectionBlockBottomRight}\label{wxgridgetselectionblockbottomright}
\constfunc{wxGridCellCoordsArray}{GetSelectionBlockBottomRight}{\void}
Returns an array of the bottom right corners of blocks of selected cells,
see \helpref{wxGrid::GetSelectionBlockTopLeft}{wxgridgetselectionblocktopleft}.
Returns an array of the bottom right corners of blocks of selected cells,
see \helpref{wxGrid::GetSelectionBlockTopLeft}{wxgridgetselectionblocktopleft}.
\membersection{wxGrid::GetSelectionForeground}\label{wxgridgetselectionforeground}
\constfunc{wxColour}{GetSelectionForeground}{\void}
\membersection{wxGrid::GetSelectionForeground}\label{wxgridgetselectionforeground}
\constfunc{wxColour}{GetSelectionForeground}{\void}
\membersection{wxGrid::GetTable}\label{wxgridgettable}
\constfunc{wxGridTableBase *}{GetTable}{\void}
Returns a base pointer to the current table object.
\membersection{wxGrid::GetTable}\label{wxgridgettable}
\constfunc{wxGridTableBase *}{GetTable}{\void}
Returns a base pointer to the current table object.
\membersection{wxGrid::GetViewWidth}\label{wxgridgetviewwidth}
\func{int}{GetViewWidth}{\void}
Returned number of whole cols visible.
\membersection{wxGrid::GetViewWidth}\label{wxgridgetviewwidth}
\func{int}{GetViewWidth}{\void}
Returned number of whole cols visible.
\membersection{wxGrid::HideCellEditControl}\label{wxgridhidecelleditcontrol}
\func{void}{HideCellEditControl}{\void}
Hides the in-place cell edit control.
\membersection{wxGrid::HideCellEditControl}\label{wxgridhidecelleditcontrol}
\func{void}{HideCellEditControl}{\void}
Hides the in-place cell edit control.
\membersection{wxGrid::InitColWidths}\label{wxgridinitcolwidths}
\func{void}{InitColWidths}{\void}
Init the m\_colWidths/Rights arrays
\membersection{wxGrid::InitColWidths}\label{wxgridinitcolwidths}
\func{void}{InitColWidths}{\void}
Init the m\_colWidths/Rights arrays
\membersection{wxGrid::InitRowHeights}\label{wxgridinitrowheights}
\func{void}{InitRowHeights}{\void}
\membersection{wxGrid::InitRowHeights}\label{wxgridinitrowheights}
\func{void}{InitRowHeights}{\void}
\membersection{wxGrid::InsertCols}\label{wxgridinsertcols}
\func{bool}{InsertCols}{\param{int }{pos = 0}, \param{int }{numCols = 1}, \param{bool }{updateLabels = true}}
Inserts one or more new columns into a grid with the first new column at the
specified position and returns true if successful. The updateLabels argument is not
\membersection{wxGrid::InsertCols}\label{wxgridinsertcols}
\func{bool}{InsertCols}{\param{int }{pos = 0}, \param{int }{numCols = 1}, \param{bool }{updateLabels = true}}
Inserts one or more new columns into a grid with the first new column at the
specified position and returns true if successful. The updateLabels argument is not
The sequence of actions begins with the grid object requesting the underlying grid
table to insert new columns. If this is successful the table notifies the grid and the
The sequence of actions begins with the grid object requesting the underlying grid
table to insert new columns. If this is successful the table notifies the grid and the
\membersection{wxGrid::InsertRows}\label{wxgridinsertrows}
\func{bool}{InsertRows}{\param{int }{pos = 0}, \param{int }{numRows = 1}, \param{bool }{updateLabels = true}}
Inserts one or more new rows into a grid with the first new row at the specified
position and returns true if successful. The updateLabels argument is not used at
\membersection{wxGrid::InsertRows}\label{wxgridinsertrows}
\func{bool}{InsertRows}{\param{int }{pos = 0}, \param{int }{numRows = 1}, \param{bool }{updateLabels = true}}
Inserts one or more new rows into a grid with the first new row at the specified
position and returns true if successful. The updateLabels argument is not used at
The sequence of actions begins with the grid object requesting the underlying grid
table to insert new rows. If this is successful the table notifies the grid and the
The sequence of actions begins with the grid object requesting the underlying grid
table to insert new rows. If this is successful the table notifies the grid and the
\membersection{wxGrid::IsCellEditControlEnabled}\label{wxgridiscelleditcontrolenabled}
\constfunc{bool}{IsCellEditControlEnabled}{\void}
Returns true if the in-place edit control is currently enabled.
\membersection{wxGrid::IsCellEditControlEnabled}\label{wxgridiscelleditcontrolenabled}
\constfunc{bool}{IsCellEditControlEnabled}{\void}
Returns true if the in-place edit control is currently enabled.
\membersection{wxGrid::IsCurrentCellReadOnly}\label{wxgridiscurrentcellreadonly}
\constfunc{bool}{IsCurrentCellReadOnly}{\void}
\membersection{wxGrid::IsCurrentCellReadOnly}\label{wxgridiscurrentcellreadonly}
\constfunc{bool}{IsCurrentCellReadOnly}{\void}
Returns true if the current cell has been set to read-only
(see \helpref{wxGrid::SetReadOnly}{wxgridsetreadonly}).
Returns true if the current cell has been set to read-only
(see \helpref{wxGrid::SetReadOnly}{wxgridsetreadonly}).
See \helpref{wxGrid::EnableEditing}{wxgridenableediting} for more information about
controlling the editing status of grid cells.
See \helpref{wxGrid::EnableEditing}{wxgridenableediting} for more information about
controlling the editing status of grid cells.
\membersection{wxGrid::IsInSelection}\label{wxgridisinselection}
\constfunc{bool}{IsInSelection}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::IsInSelection}\label{wxgridisinselection}
\constfunc{bool}{IsInSelection}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::IsReadOnly}\label{wxgridisreadonly}
\constfunc{bool}{IsReadOnly}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::IsReadOnly}\label{wxgridisreadonly}
\constfunc{bool}{IsReadOnly}{\param{int }{row}, \param{int }{col}}
Returns true if the cell at the specified location can't be edited.
See also \helpref{wxGrid::IsReadOnly}{wxgridisreadonly}.
Returns true if the cell at the specified location can't be edited.
See also \helpref{wxGrid::IsReadOnly}{wxgridisreadonly}.
\membersection{wxGrid::IsSelection}\label{wxgridisselection}
\func{bool}{IsSelection}{\void}
Returns true if there are currently rows, columns or blocks of cells selected.
\membersection{wxGrid::IsSelection}\label{wxgridisselection}
\func{bool}{IsSelection}{\void}
Returns true if there are currently rows, columns or blocks of cells selected.
\membersection{wxGrid::IsVisible}\label{wxgridisvisible}
\func{bool}{IsVisible}{\param{int }{row}, \param{int }{col}, \param{bool }{wholeCellVisible = true}}
\membersection{wxGrid::IsVisible}\label{wxgridisvisible}
\func{bool}{IsVisible}{\param{int }{row}, \param{int }{col}, \param{bool }{wholeCellVisible = true}}
Returns true if a cell is either wholly visible (the default) or at least partially
visible in the grid window.
Returns true if a cell is either wholly visible (the default) or at least partially
visible in the grid window.
\membersection{wxGrid::MakeCellVisible}\label{wxgridmakecellvisible}
\func{void}{MakeCellVisible}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::MakeCellVisible}\label{wxgridmakecellvisible}
\func{void}{MakeCellVisible}{\param{int }{row}, \param{int }{col}}
\func{void}{MakeCellVisible}{\param{const wxGridCellCoords\& }{coords}}
Brings the specified cell into the visible grid cell area with minimal scrolling. Does
\func{void}{MakeCellVisible}{\param{const wxGridCellCoords\& }{coords}}
Brings the specified cell into the visible grid cell area with minimal scrolling. Does
\membersection{wxGrid::MoveCursorLeft}\label{wxgridmovecursorleft}
\func{bool}{MoveCursorLeft}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorLeft}\label{wxgridmovecursorleft}
\func{bool}{MoveCursorLeft}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorRight}\label{wxgridmovecursorright}
\func{bool}{MoveCursorRight}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorRight}\label{wxgridmovecursorright}
\func{bool}{MoveCursorRight}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorUp}\label{wxgridmovecursorup}
\func{bool}{MoveCursorUp}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorUp}\label{wxgridmovecursorup}
\func{bool}{MoveCursorUp}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorDownBlock}\label{wxgridmovecursordownblock}
\func{bool}{MoveCursorDownBlock}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorDownBlock}\label{wxgridmovecursordownblock}
\func{bool}{MoveCursorDownBlock}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorLeftBlock}\label{wxgridmovecursorleftblock}
\func{bool}{MoveCursorLeftBlock}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorLeftBlock}\label{wxgridmovecursorleftblock}
\func{bool}{MoveCursorLeftBlock}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorRightBlock}\label{wxgridmovecursorrightblock}
\func{bool}{MoveCursorRightBlock}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorRightBlock}\label{wxgridmovecursorrightblock}
\func{bool}{MoveCursorRightBlock}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorUpBlock}\label{wxgridmovecursorupblock}
\func{bool}{MoveCursorUpBlock}{\param{bool }{expandSelection}}
\membersection{wxGrid::MoveCursorUpBlock}\label{wxgridmovecursorupblock}
\func{bool}{MoveCursorUpBlock}{\param{bool }{expandSelection}}
\membersection{wxGrid::RegisterDataType}\label{wxgridregisterdatatype}
\func{void}{RegisterDataType}{\param{const wxString\& }{typeName}, \param{wxGridCellRenderer* }{renderer}, \param{wxGridCellEditor* }{editor}}
Methods for a registry for mapping data types to Renderers/Editors
\membersection{wxGrid::RegisterDataType}\label{wxgridregisterdatatype}
\func{void}{RegisterDataType}{\param{const wxString\& }{typeName}, \param{wxGridCellRenderer* }{renderer}, \param{wxGridCellEditor* }{editor}}
Methods for a registry for mapping data types to Renderers/Editors
\membersection{wxGrid::SaveEditControlValue}\label{wxgridsaveeditcontrolvalue}
\func{void}{SaveEditControlValue}{\void}
\membersection{wxGrid::SaveEditControlValue}\label{wxgridsaveeditcontrolvalue}
\func{void}{SaveEditControlValue}{\void}
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.
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.
\membersection{wxGrid::SelectAll}\label{wxgridselectall}
\func{void}{SelectAll}{\void}
Selects all cells in the grid.
\membersection{wxGrid::SelectAll}\label{wxgridselectall}
\func{void}{SelectAll}{\void}
Selects all cells in the grid.
\param{const wxGridCellCoords\& }{bottomRight}, \param{bool }{addToSelected = false}}
Selects a rectangular block of cells. If addToSelected is false then any existing selection will be
\param{const wxGridCellCoords\& }{bottomRight}, \param{bool }{addToSelected = false}}
Selects a rectangular block of cells. If addToSelected is false then any existing selection will be
Selects the specified column. If addToSelected is false then any existing selection will be
deselected; if true the column will be added to the existing selection.
Selects the specified column. If addToSelected is false then any existing selection will be
deselected; if true the column will be added to the existing selection.
\membersection{wxGrid::SelectionToDeviceRect}\label{wxgridselectiontodevicerect}
\func{wxRect}{SelectionToDeviceRect}{\void}
\membersection{wxGrid::SelectionToDeviceRect}\label{wxgridselectiontodevicerect}
\func{wxRect}{SelectionToDeviceRect}{\void}
\membersection{wxGrid::SelectRow}\label{wxgridselectrow}
\func{void}{SelectRow}{\param{int }{row}, \param{bool }{addToSelected = false}}
\membersection{wxGrid::SelectRow}\label{wxgridselectrow}
\func{void}{SelectRow}{\param{int }{row}, \param{bool }{addToSelected = false}}
Selects the specified row. If addToSelected is false then any existing selection will be
deselected; if true the row will be added to the existing selection.
Selects the specified row. If addToSelected is false then any existing selection will be
deselected; if true the row will be added to the existing selection.
\membersection{wxGrid::SetCellAlignment}\label{wxgridsetcellalignment}
\func{void}{SetCellAlignment}{\param{int }{row}, \param{int }{col}, \param{int }{horiz}, \param{int }{vert}}
\membersection{wxGrid::SetCellAlignment}\label{wxgridsetcellalignment}
\func{void}{SetCellAlignment}{\param{int }{row}, \param{int }{col}, \param{int }{horiz}, \param{int }{vert}}
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.
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.
\membersection{wxGrid::SetCellBackgroundColour}\label{wxgridsetcellbackgroundcolour}
\func{void}{SetCellBackgroundColour}{\param{int }{row}, \param{int }{col}, \param{const wxColour\&}{ colour}}
\membersection{wxGrid::SetCellBackgroundColour}\label{wxgridsetcellbackgroundcolour}
\func{void}{SetCellBackgroundColour}{\param{int }{row}, \param{int }{col}, \param{const wxColour\&}{ colour}}
\membersection{wxGrid::SetCellEditor}\label{wxgridsetcelleditor}
\func{void}{SetCellEditor}{\param{int }{row}, \param{int }{col}, \param{wxGridCellEditor* }{editor}}
\membersection{wxGrid::SetCellEditor}\label{wxgridsetcelleditor}
\func{void}{SetCellEditor}{\param{int }{row}, \param{int }{col}, \param{wxGridCellEditor* }{editor}}
The grid will take ownership of the pointer.
See \helpref{wxGridCellEditor}{wxgridcelleditor} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
The grid will take ownership of the pointer.
See \helpref{wxGridCellEditor}{wxgridcelleditor} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
\membersection{wxGrid::SetCellFont}\label{wxgridsetcellfont}
\func{void}{SetCellFont}{\param{int }{row}, \param{int }{col}, \param{const wxFont\&}{ font}}
Sets the font for text in the grid cell at the specified location.
\membersection{wxGrid::SetCellFont}\label{wxgridsetcellfont}
\func{void}{SetCellFont}{\param{int }{row}, \param{int }{col}, \param{const wxFont\&}{ font}}
Sets the font for text in the grid cell at the specified location.
\membersection{wxGrid::SetCellRenderer}\label{wxgridsetcellrenderer}
\func{void}{SetCellRenderer}{\param{int }{row}, \param{int }{col}, \param{wxGridCellRenderer* }{renderer}}
\membersection{wxGrid::SetCellRenderer}\label{wxgridsetcellrenderer}
\func{void}{SetCellRenderer}{\param{int }{row}, \param{int }{col}, \param{wxGridCellRenderer* }{renderer}}
The grid will take ownership of the pointer.
See \helpref{wxGridCellRenderer}{wxgridcellrenderer} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
The grid will take ownership of the pointer.
See \helpref{wxGridCellRenderer}{wxgridcellrenderer} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
\membersection{wxGrid::SetCellTextColour}\label{wxgridsetcelltextcolour}
\func{void}{SetCellTextColour}{\param{int }{row}, \param{int }{col}, \param{const wxColour\&}{ colour}}
\membersection{wxGrid::SetCellTextColour}\label{wxgridsetcelltextcolour}
\func{void}{SetCellTextColour}{\param{int }{row}, \param{int }{col}, \param{const wxColour\&}{ colour}}
\membersection{wxGrid::SetCellValue}\label{wxgridsetcellvalue}
\func{void}{SetCellValue}{\param{int }{row}, \param{int }{col}, \param{const wxString\& }{s}}
\membersection{wxGrid::SetCellValue}\label{wxgridsetcellvalue}
\func{void}{SetCellValue}{\param{int }{row}, \param{int }{col}, \param{const wxString\& }{s}}
Sets the string value for the cell at the specified location. For simple applications where a
grid object automatically uses a default grid table of string values you use this function together
Sets the string value for the cell at the specified location. For simple applications where a
grid object automatically uses a default grid table of string values you use this function together
For more complex applications where you have derived your own grid table class that contains
various data types (e.g. numeric, boolean or user-defined custom types) then you only use this
For more complex applications where you have derived your own grid table class that contains
various data types (e.g. numeric, boolean or user-defined custom types) then you only use this
See \helpref{wxGridTableBase::CanSetValueAs}{wxgridtablebasecangetvalueas}
and the \helpref{wxGrid overview}{gridoverview} for more information.
See \helpref{wxGridTableBase::CanSetValueAs}{wxgridtablebasecangetvalueas}
and the \helpref{wxGrid overview}{gridoverview} for more information.
\membersection{wxGrid::SetColAttr}\label{wxgridsetcolattr}
\func{void}{SetColAttr}{\param{int }{col}, \param{wxGridCellAttr* }{attr}}
Sets the cell attributes for all cells in the specified column.
\membersection{wxGrid::SetColAttr}\label{wxgridsetcolattr}
\func{void}{SetColAttr}{\param{int }{col}, \param{wxGridCellAttr* }{attr}}
Sets the cell attributes for all cells in the specified column.
-For more information about controlling grid cell attributes see the
-\helpref{wxGridCellAttr}{wxgridcellattr} cell attribute class and the
+For more information about controlling grid cell attributes see the
+\helpref{wxGridCellAttr}{wxgridcellattr} cell attribute class and the
\membersection{wxGrid::SetColFormatBool}\label{wxgridsetcolformatbool}
\func{void}{SetColFormatBool}{\param{int }{col}}
Sets the specified column to display boolean values. wxGrid displays boolean values with a checkbox.
\membersection{wxGrid::SetColFormatBool}\label{wxgridsetcolformatbool}
\func{void}{SetColFormatBool}{\param{int }{col}}
Sets the specified column to display boolean values. wxGrid displays boolean values with a checkbox.
\membersection{wxGrid::SetColFormatNumber}\label{wxgridsetcolformatnumber}
\func{void}{SetColFormatNumber}{\param{int }{col}}
Sets the specified column to display integer values.
\membersection{wxGrid::SetColFormatNumber}\label{wxgridsetcolformatnumber}
\func{void}{SetColFormatNumber}{\param{int }{col}}
Sets the specified column to display integer values.
\membersection{wxGrid::SetColFormatFloat}\label{wxgridsetcolformatfloat}
\func{void}{SetColFormatFloat}{\param{int }{col}, \param{int }{width = -1}, \param{int }{precision = -1}}
Sets the specified column to display floating point values with the given width and precision.
\membersection{wxGrid::SetColFormatFloat}\label{wxgridsetcolformatfloat}
\func{void}{SetColFormatFloat}{\param{int }{col}, \param{int }{width = -1}, \param{int }{precision = -1}}
Sets the specified column to display floating point values with the given width and precision.
\membersection{wxGrid::SetColFormatCustom}\label{wxgridsetcolformatcustom}
\func{void}{SetColFormatCustom}{\param{int }{col}, \param{const wxString\& }{typeName}}
\membersection{wxGrid::SetColFormatCustom}\label{wxgridsetcolformatcustom}
\func{void}{SetColFormatCustom}{\param{int }{col}, \param{const wxString\& }{typeName}}
\membersection{wxGrid::SetColLabelAlignment}\label{wxgridsetcollabelalignment}
\func{void}{SetColLabelAlignment}{\param{int }{horiz}, \param{int }{vert}}
\membersection{wxGrid::SetColLabelAlignment}\label{wxgridsetcollabelalignment}
\func{void}{SetColLabelAlignment}{\param{int }{horiz}, \param{int }{vert}}
\membersection{wxGrid::SetColLabelSize}\label{wxgridsetcollabelsize}
\func{void}{SetColLabelSize}{\param{int }{height}}
Sets the height of the column labels.
\membersection{wxGrid::SetColLabelSize}\label{wxgridsetcollabelsize}
\func{void}{SetColLabelSize}{\param{int }{height}}
Sets the height of the column labels.
\membersection{wxGrid::SetColLabelValue}\label{wxgridsetcollabelvalue}
\func{void}{SetColLabelValue}{\param{int }{col}, \param{const wxString\&}{ value}}
\membersection{wxGrid::SetColLabelValue}\label{wxgridsetcollabelvalue}
\func{void}{SetColLabelValue}{\param{int }{col}, \param{const wxString\&}{ value}}
override \helpref{wxGridTableBase::SetColLabelValue}{wxgridtablebasesetcollabelvalue}
for this to have any effect.
override \helpref{wxGridTableBase::SetColLabelValue}{wxgridtablebasesetcollabelvalue}
for this to have any effect.
\membersection{wxGrid::SetColMinimalWidth}\label{wxgridsetcolminimalwidth}
\func{void}{SetColMinimalWidth}{\param{int }{col}, \param{int }{width}}
\membersection{wxGrid::SetColMinimalWidth}\label{wxgridsetcolminimalwidth}
\func{void}{SetColMinimalWidth}{\param{int }{col}, \param{int }{width}}
The width argument must be higher than the minimimal acceptable column width, see
\helpref{wxGrid::GetColMinimalAcceptableWidth}{wxgridgetcolminimalacceptablewidth}.
The width argument must be higher than the minimimal acceptable column width, see
\helpref{wxGrid::GetColMinimalAcceptableWidth}{wxgridgetcolminimalacceptablewidth}.
\membersection{wxGrid::SetColMinimalAcceptableWidth}\label{wxgridsetcolminimalacceptablewidth}
\func{void}{SetColMinimalAcceptableWidth}{\param{int }{width}}
\membersection{wxGrid::SetColMinimalAcceptableWidth}\label{wxgridsetcolminimalacceptablewidth}
\func{void}{SetColMinimalAcceptableWidth}{\param{int }{width}}
than the actual minimum size will incur a performance penalty in the functions which perform
grid cell index lookup on the basis of screen coordinates.
This should normally be called when creating the grid because it will not resize existing columns
than the actual minimum size will incur a performance penalty in the functions which perform
grid cell index lookup on the basis of screen coordinates.
This should normally be called when creating the grid because it will not resize existing columns
-with sizes smaller than the value specified here.
+with sizes smaller than the value specified here.
+
+
+
+\membersection{wxGrid::SetColPos}\label{wxgridsetcolpos}
+
+\func{void}{SetColPos}{\param{int }{colID}, \param{int }{newPos}}
+
+Sets the position of the specified column.
+
+
\membersection{wxGrid::SetColSize}\label{wxgridsetcolsize}
\func{void}{SetColSize}{\param{int }{col}, \param{int }{width}}
\membersection{wxGrid::SetColSize}\label{wxgridsetcolsize}
\func{void}{SetColSize}{\param{int }{col}, \param{int }{width}}
Automatically sizes the column to fit its contents. If setAsMin is true the calculated width will
also be set as the minimal width for the column.
\wxheading{Note}\\
wxGrid sets up arrays to store individual row and column sizes when non-default sizes are used.
Automatically sizes the column to fit its contents. If setAsMin is true the calculated width will
also be set as the minimal width for the column.
\wxheading{Note}\\
wxGrid sets up arrays to store individual row and column sizes when non-default sizes are used.
\membersection{wxGrid::SetDefaultCellBackgroundColour}\label{wxgridsetdefaultcellbackgroundcolour}
\func{void}{SetDefaultCellBackgroundColour}{\param{const wxColour\&}{ colour}}
Sets the default background colour for grid cells.
\membersection{wxGrid::SetDefaultCellBackgroundColour}\label{wxgridsetdefaultcellbackgroundcolour}
\func{void}{SetDefaultCellBackgroundColour}{\param{const wxColour\&}{ colour}}
Sets the default background colour for grid cells.
\membersection{wxGrid::SetDefaultCellFont}\label{wxgridsetdefaultcellfont}
\func{void}{SetDefaultCellFont}{\param{const wxFont\&}{ font}}
Sets the default font to be used for grid cell text.
\membersection{wxGrid::SetDefaultCellFont}\label{wxgridsetdefaultcellfont}
\func{void}{SetDefaultCellFont}{\param{const wxFont\&}{ font}}
Sets the default font to be used for grid cell text.
\membersection{wxGrid::SetDefaultEditor}\label{wxgridsetdefaulteditor}
\func{void}{SetDefaultEditor}{\param{wxGridCellEditor* }{editor}}
\membersection{wxGrid::SetDefaultEditor}\label{wxgridsetdefaulteditor}
\func{void}{SetDefaultEditor}{\param{wxGridCellEditor* }{editor}}
See \helpref{wxGridCellEditor}{wxgridcelleditor} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
See \helpref{wxGridCellEditor}{wxgridcelleditor} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
\membersection{wxGrid::SetDefaultRenderer}\label{wxgridsetdefaultrenderer}
\func{void}{SetDefaultRenderer}{\param{wxGridCellRenderer* }{renderer}}
\membersection{wxGrid::SetDefaultRenderer}\label{wxgridsetdefaultrenderer}
\func{void}{SetDefaultRenderer}{\param{wxGridCellRenderer* }{renderer}}
See \helpref{wxGridCellRenderer}{wxgridcellrenderer} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
See \helpref{wxGridCellRenderer}{wxgridcellrenderer} and
the \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.
\membersection{wxGrid::SetDefaultColSize}\label{wxgridsetdefaultcolsize}
\func{void}{SetDefaultColSize}{\param{int }{width}, \param{bool }{resizeExistingCols = false}}
Sets the default width for columns in the grid. This will only affect columns subsequently added to
\membersection{wxGrid::SetDefaultColSize}\label{wxgridsetdefaultcolsize}
\func{void}{SetDefaultColSize}{\param{int }{width}, \param{bool }{resizeExistingCols = false}}
Sets the default width for columns in the grid. This will only affect columns subsequently added to
Sets the default height for rows in the grid. This will only affect rows subsequently added
to the grid unless resizeExistingRows is true.
Sets the default height for rows in the grid. This will only affect rows subsequently added
to the grid unless resizeExistingRows is true.
\membersection{wxGrid::SetGridCursor}\label{wxgridsetgridcursor}
\func{void}{SetGridCursor}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::SetGridCursor}\label{wxgridsetgridcursor}
\func{void}{SetGridCursor}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::SetGridLineColour}\label{wxgridsetgridlinecolour}
\func{void}{SetGridLineColour}{\param{const wxColour\&}{colour}}
Sets the colour used to draw grid lines.
\membersection{wxGrid::SetGridLineColour}\label{wxgridsetgridlinecolour}
\func{void}{SetGridLineColour}{\param{const wxColour\&}{colour}}
Sets the colour used to draw grid lines.
\membersection{wxGrid::SetLabelBackgroundColour}\label{wxgridsetlabelbackgroundcolour}
\func{void}{SetLabelBackgroundColour}{\param{const wxColour\&}{ colour}}
Sets the background colour for row and column labels.
\membersection{wxGrid::SetLabelBackgroundColour}\label{wxgridsetlabelbackgroundcolour}
\func{void}{SetLabelBackgroundColour}{\param{const wxColour\&}{ colour}}
Sets the background colour for row and column labels.
\membersection{wxGrid::SetLabelFont}\label{wxgridsetlabelfont}
\func{void}{SetLabelFont}{\param{const wxFont\&}{ font}}
Sets the font for row and column labels.
\membersection{wxGrid::SetLabelFont}\label{wxgridsetlabelfont}
\func{void}{SetLabelFont}{\param{const wxFont\&}{ font}}
Sets the font for row and column labels.
\membersection{wxGrid::SetLabelTextColour}\label{wxgridsetlabeltextcolour}
\func{void}{SetLabelTextColour}{\param{const wxColour\&}{ colour}}
Sets the colour for row and column label text.
\membersection{wxGrid::SetLabelTextColour}\label{wxgridsetlabeltextcolour}
\func{void}{SetLabelTextColour}{\param{const wxColour\&}{ colour}}
Sets the colour for row and column label text.
\membersection{wxGrid::SetMargins}\label{wxgridsetmargins}
\func{void}{SetMargins}{\param{int }{extraWidth}, \param{int }{extraHeight}}
\membersection{wxGrid::SetMargins}\label{wxgridsetmargins}
\func{void}{SetMargins}{\param{int }{extraWidth}, \param{int }{extraHeight}}
A grid may occupy more space than needed for its rows/columns. This
function allows to set how big this extra space is
A grid may occupy more space than needed for its rows/columns. This
function allows to set how big this extra space is
\membersection{wxGrid::SetOrCalcColumnSizes}\label{wxgridsetorcalccolumnsizes}
\func{int}{SetOrCalcColumnSizes}{\param{bool }{calcOnly}, \param{bool }{setAsMin = true}}
Common part of AutoSizeColumn/Row() and GetBestSize()
\membersection{wxGrid::SetOrCalcColumnSizes}\label{wxgridsetorcalccolumnsizes}
\func{int}{SetOrCalcColumnSizes}{\param{bool }{calcOnly}, \param{bool }{setAsMin = true}}
Common part of AutoSizeColumn/Row() and GetBestSize()
\membersection{wxGrid::SetOrCalcRowSizes}\label{wxgridsetorcalcrowsizes}
\func{int}{SetOrCalcRowSizes}{\param{bool }{calcOnly}, \param{bool }{setAsMin = true}}
\membersection{wxGrid::SetOrCalcRowSizes}\label{wxgridsetorcalcrowsizes}
\func{int}{SetOrCalcRowSizes}{\param{bool }{calcOnly}, \param{bool }{setAsMin = true}}
\membersection{wxGrid::SetReadOnly}\label{wxgridsetreadonly}
\func{void}{SetReadOnly}{\param{int }{row}, \param{int }{col}, \param{bool }{isReadOnly = true}}
\membersection{wxGrid::SetReadOnly}\label{wxgridsetreadonly}
\func{void}{SetReadOnly}{\param{int }{row}, \param{int }{col}, \param{bool }{isReadOnly = true}}
Makes the cell at the specified location read-only or editable.
See also \helpref{wxGrid::IsReadOnly}{wxgridisreadonly}.
Makes the cell at the specified location read-only or editable.
See also \helpref{wxGrid::IsReadOnly}{wxgridisreadonly}.
\membersection{wxGrid::SetRowAttr}\label{wxgridsetrowattr}
\func{void}{SetRowAttr}{\param{int }{row}, \param{wxGridCellAttr* }{attr}}
\membersection{wxGrid::SetRowAttr}\label{wxgridsetrowattr}
\func{void}{SetRowAttr}{\param{int }{row}, \param{wxGridCellAttr* }{attr}}
See the \helpref{wxGridCellAttr}{wxgridcellattr} class for more information
about controlling cell attributes.
See the \helpref{wxGridCellAttr}{wxgridcellattr} class for more information
about controlling cell attributes.
\membersection{wxGrid::SetRowLabelAlignment}\label{wxgridsetrowlabelalignment}
\func{void}{SetRowLabelAlignment}{\param{int }{horiz}, \param{int }{vert}}
\membersection{wxGrid::SetRowLabelAlignment}\label{wxgridsetrowlabelalignment}
\func{void}{SetRowLabelAlignment}{\param{int }{horiz}, \param{int }{vert}}
\membersection{wxGrid::SetRowLabelSize}\label{wxgridsetrowlabelsize}
\func{void}{SetRowLabelSize}{\param{int }{width}}
Sets the width of the row labels.
\membersection{wxGrid::SetRowLabelSize}\label{wxgridsetrowlabelsize}
\func{void}{SetRowLabelSize}{\param{int }{width}}
Sets the width of the row labels.
\membersection{wxGrid::SetRowLabelValue}\label{wxgridsetrowlabelvalue}
\func{void}{SetRowLabelValue}{\param{int }{row}, \param{const wxString\&}{ value}}
\membersection{wxGrid::SetRowLabelValue}\label{wxgridsetrowlabelvalue}
\func{void}{SetRowLabelValue}{\param{int }{row}, \param{const wxString\&}{ value}}
-Set the value for the given row label. If you are using a derived grid table you must
-override \helpref{wxGridTableBase::SetRowLabelValue}{wxgridtablebasesetrowlabelvalue}
+Set the value for the given row label. If you are using a derived grid table you must
+override \helpref{wxGridTableBase::SetRowLabelValue}{wxgridtablebasesetrowlabelvalue}
\membersection{wxGrid::SetRowMinimalHeight}\label{wxgridsetrowminimalheight}
\func{void}{SetRowMinimalHeight}{\param{int }{row}, \param{int }{height}}
\membersection{wxGrid::SetRowMinimalHeight}\label{wxgridsetrowminimalheight}
\func{void}{SetRowMinimalHeight}{\param{int }{row}, \param{int }{height}}
The height argument must be higher than the minimimal acceptable row height, see
\helpref{wxGrid::GetRowMinimalAcceptableHeight}{wxgridgetrowminimalacceptableheight}.
The height argument must be higher than the minimimal acceptable row height, see
\helpref{wxGrid::GetRowMinimalAcceptableHeight}{wxgridgetrowminimalacceptableheight}.
\membersection{wxGrid::SetRowMinimalAcceptableHeight}\label{wxgridsetrowminimalacceptableheight}
\func{void}{SetRowMinimalAcceptableHeight}{\param{int }{height}}
\membersection{wxGrid::SetRowMinimalAcceptableHeight}\label{wxgridsetrowminimalacceptableheight}
\func{void}{SetRowMinimalAcceptableHeight}{\param{int }{height}}
than the actual minimum size will incur a performance penalty in the functions which perform
grid cell index lookup on the basis of screen coordinates.
This should normally be called when creating the grid because it will not resize existing rows
than the actual minimum size will incur a performance penalty in the functions which perform
grid cell index lookup on the basis of screen coordinates.
This should normally be called when creating the grid because it will not resize existing rows
\membersection{wxGrid::SetRowSize}\label{wxgridsetrowsize}
\func{void}{SetRowSize}{\param{int }{row}, \param{int }{height}}
\membersection{wxGrid::SetRowSize}\label{wxgridsetrowsize}
\func{void}{SetRowSize}{\param{int }{row}, \param{int }{height}}
Automatically sizes the column to fit its contents. If setAsMin is true the calculated width will
also be set as the minimal width for the column.
Automatically sizes the column to fit its contents. If setAsMin is true the calculated width will
also be set as the minimal width for the column.
Sets the number of pixels per horizontal scroll increment. The default is 15.
Sometimes wxGrid has trouble setting the scrollbars correctly due to rounding
errors: setting this to 1 can help.
Sets the number of pixels per horizontal scroll increment. The default is 15.
Sometimes wxGrid has trouble setting the scrollbars correctly due to rounding
errors: setting this to 1 can help.
-\membersection{wxGrid::SetScrollLinesY}\label{wxgridsetscrolllinesy}
+\wxheading{See also}
+
+\helpref{wxGrid::GetScrollLineX}{wxgridgetscrolllinex},\rtfsp
+\helpref{wxGrid::GetScrollLineY}{wxgridgetscrollliney},\rtfsp
+\helpref{wxGrid::SetScrollLineY}{wxgridsetscrollliney}
Sets the number of pixels per vertical scroll increment. The default is 15.
Sometimes wxGrid has trouble setting the scrollbars correctly due to rounding
errors: setting this to 1 can help.
Sets the number of pixels per vertical scroll increment. The default is 15.
Sometimes wxGrid has trouble setting the scrollbars correctly due to rounding
errors: setting this to 1 can help.
\membersection{wxGrid::SetSelectionBackground}\label{wxgridsetselectionbackground}
\func{void}{SetSelectionBackground}{\param{const wxColour\& }{c}}
\membersection{wxGrid::SetSelectionBackground}\label{wxgridsetselectionbackground}
\func{void}{SetSelectionBackground}{\param{const wxColour\& }{c}}
\membersection{wxGrid::SetSelectionForeground}\label{wxgridsetselectionforeground}
\func{void}{SetSelectionForeground}{\param{const wxColour\& }{c}}
\membersection{wxGrid::SetSelectionForeground}\label{wxgridsetselectionforeground}
\func{void}{SetSelectionForeground}{\param{const wxColour\& }{c}}
\membersection{wxGrid::SetSelectionMode}\label{wxgridsetselectionmode}
\func{void}{SetSelectionMode}{\param{wxGrid::wxGridSelectionModes}{ selmode}}
\membersection{wxGrid::SetSelectionMode}\label{wxgridsetselectionmode}
\func{void}{SetSelectionMode}{\param{wxGrid::wxGridSelectionModes}{ selmode}}
Passes a pointer to a custom grid table to be used by the grid. This should be called
after the grid constructor and before using the grid object. If takeOwnership is set to
Passes a pointer to a custom grid table to be used by the grid. This should be called
after the grid constructor and before using the grid object. If takeOwnership is set to
Use this function instead of \helpref{wxGrid::CreateGrid}{wxgridcreategrid} when your
application involves complex or non-string data or data sets that are too large to fit
Use this function instead of \helpref{wxGrid::CreateGrid}{wxgridcreategrid} when your
application involves complex or non-string data or data sets that are too large to fit
-\func{int}{XToCol}{\param{int }{x}}
+\func{int}{XToCol}{\param{int }{x}, \param{bool }{clipToMinMax = false}}
+
+\wxheading{Parameters}
+\docparam{x}{The x position to evaluate.}
+\docparam{clipToMinMax}{If true, rather than returning wxNOT\_FOUND, it returns either the first or last column depending on whether x is too far to the left or right respectively.}
\membersection{wxGrid::XToEdgeOfCol}\label{wxgridxtoedgeofcol}
\func{int}{XToEdgeOfCol}{\param{int }{x}}
\membersection{wxGrid::XToEdgeOfCol}\label{wxgridxtoedgeofcol}
\func{int}{XToEdgeOfCol}{\param{int }{x}}
Returns the column whose right hand edge is close to the given logical x position.
If no column edge is near to this position {\tt wxNOT\_FOUND} is returned.
Returns the column whose right hand edge is close to the given logical x position.
If no column edge is near to this position {\tt wxNOT\_FOUND} is returned.
\membersection{wxGrid::YToEdgeOfRow}\label{wxgridytoedgeofrow}
\func{int}{YToEdgeOfRow}{\param{int }{y}}
\membersection{wxGrid::YToEdgeOfRow}\label{wxgridytoedgeofrow}
\func{int}{YToEdgeOfRow}{\param{int }{y}}
Returns the row whose bottom edge is close to the given logical y position.
If no row edge is near to this position {\tt wxNOT\_FOUND} is returned.
Returns the row whose bottom edge is close to the given logical y position.
If no row edge is near to this position {\tt wxNOT\_FOUND} is returned.