## wxGridEvent

This event class contains information about various grid events.

Derived from

wxNotifyEvent
wxCommandEvent
wxEvent
wxObject

Include files

<wx/grid.h>

Event handling

The event handler for the following functions takes a wxGridEvent parameter.

EVT_GRID_CELL_LEFT_CLICK(func) | The user clicked a cell with the left mouse button. Processes a wxEVT_GRID_CELL_LEFT_CLICK.
EVT_GRID_CELL_RIGHT_CLICK(func) | The user clicked a cell with the right mouse button. Processes a wxEVT_GRID_CELL_RIGHT_CLICK.
EVT_GRID_CELL_LEFT_DCLICK(func) | The user double-clicked a cell with the left mouse button. Processes a wxEVT_GRID_CELL_LEFT_DCLICK.
EVT_GRID_CELL_RIGHT_DCLICK(func) | The user double-clicked a cell with the right mouse button. Processes a wxEVT_GRID_CELL_RIGHT_DCLICK.
EVT_GRID_LABEL_LEFT_CLICK(func) | The user clicked a label with the left mouse button. Processes a wxEVT_GRID_LABEL_LEFT_CLICK.
EVT_GRID_LABEL_RIGHT_CLICK(func) | The user clicked a label with the right mouse button. Processes a wxEVT_GRID_LABEL_RIGHT_CLICK.
EVT_GRID_LABEL_LEFT_DCLICK(func) | The user double-clicked a label with the left mouse button. Processes a wxEVT_GRID_LABEL_LEFT_DCLICK.
EVT_GRID_LABEL_RIGHT_DCLICK(func) | The user double-clicked a label with the right mouse button. Processes a wxEVT_GRID_LABEL_RIGHT_DCLICK.
EVT_GRID_CELL_CHANGE(func) | The user moved the cursor to another cell. Processes a wxEVT_GRID_CELL_CHANGE.
EVT_GRID_SELECT_CELL(func) | The user selected a cell. Processes a wxEVT_GRID_SELECT_CELL.
EVT_GRID_EDITOR_HIDDEN(func) | The editor for a cell was hidden. Processes a wxEVT_GRID_EDITOR_HIDDEN.
EVT_GRID_EDITOR_SHOWN(func) | The editor for a cell was shown. Processes a wxEVT_GRID_EDITOR_SHOWN.

Members

wxGridEvent::wxGridEvent
wxGridEvent::AltDown
wxGridEvent::ControlDown
wxGridEvent::GetCol
wxGridEvent::GetPosition
wxGridEvent::GetRow
wxGridEvent::MetaDown
wxGridEvent::Selecting
wxGridEvent::ShiftDown

### wxGridEvent::wxGridEvent

wxGridEvent()

Default constructor.

wxGridEvent(int id, wxEventType type, wxObject* obj, int row = -1, int col = -1, int x = -1, int y = -1, bool sel = TRUE, bool control = FALSE, bool shift = FALSE, bool alt = FALSE, bool meta = FALSE)

Parameters

### wxGridEvent::AltDown

bool AltDown()

Returns TRUE if the Alt key was down at the time of the event.

### wxGridEvent::ControlDown

bool ControlDown()

Returns TRUE if the Control key was down at the time of the event.

### wxGridEvent::GetCol

int GetCol()

Column at which the event occurred.

### wxGridEvent::GetPosition

wxPoint GetPosition()

Position in pixels at which the event occurred.

### wxGridEvent::GetRow

int GetRow()

Row at which the event occurred.

### wxGridEvent::MetaDown

bool MetaDown()

Returns TRUE if the Meta key was down at the time of the event.

### wxGridEvent::Selecting

bool Selecting()

Returns TRUE if the user deselected a cell, FALSE if the user deselected a cell.

### wxGridEvent::ShiftDown

bool ShiftDown()

Returns TRUE if the Shift key was down at the time of the event.