The following screenshot shows the initial appearance of the sample wxGrid application.
The wxGrid class is a panel that provides a text editing area, and a grid with scrollbars. The grid has horizontal and vertical label areas whose colours may be changed independently from the cell area. The text editing area, and the label areas, may be switched off if desired.
The user navigates the grid using the mouse to click on cells and scroll around the virtual grid area (no keyboard navigation is possible as yet). If the edit control is enabled, it always has the focus for the currently selected cell and the user can type into it. The text in the edit control will be reflected in the currently selected cell.
If the row and column label areas are enabled, the user can drag on the label divisions to resize a row or column.
The sample application allows the user to change various aspects of the grid using the wxGrid API. These include:
There are various other aspects that can be controlled via the API, including changing individual cell font and colour properties.