GridView.RowCellClick Event
Allows you to respond to clicking a cell within a row. The event will not fire when clicking on a row cell, if data editing is enabled and the ColumnViewOptionsBehavior.EditorShowMode property is set to MouseDown (and to Default, if multiple row selection is disabled).
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v18.1.dll
Declaration
Event Data
The RowCellClick event's data class is RowCellClickEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Button | Gets which mouse button was pressed. Inherited from MouseEventArgs. |
CellValue | Gets the edit value of the clicked cell. |
Clicks | Gets the number of times the mouse button was pressed and released. Inherited from MouseEventArgs. |
Column | Gets the column that contains the clicked cell. |
Delta | Gets a signed count of the number of detents the mouse wheel has rotated, multiplied by the WHEEL_DELTA constant. A detent is one notch of the mouse wheel. Inherited from MouseEventArgs. |
Handled | Gets or sets whether this event should be forwarded to the control’s parent container. Inherited from HandledMouseEventArgs. |
HitInfo | Gets an object that identifies the clicked element. Inherited from RowClickEventArgs. |
IsHMouseWheel | This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from DXMouseEventArgs. |
IsMouseEvent | Gets whether these event arguments provide data for the MouseUp, MouseDown, and MouseMove events. Inherited from DXMouseEventArgs. |
Location | Gets the location of the mouse during the generating mouse event. Inherited from MouseEventArgs. |
RowHandle | Gets the handle of the clicked row. Inherited from RowClickEventArgs. |
X | Gets the x-coordinate of the mouse during the generating mouse event. Inherited from MouseEventArgs. |
Y | Gets the y-coordinate of the mouse during the generating mouse event. Inherited from MouseEventArgs. |
The event data class exposes the following methods:
Method | Description |
---|---|
GetMouseArgs(Control, EventArgs) | Converts the MouseEventArgs object passed as a parameter to a DXMouseEventArgs object. Inherited from DXMouseEventArgs. |
GetMouseArgs(MouseEventArgs) | Converts the MouseEventArgs object passed as a parameter to a DXMouseEventArgs object. Inherited from DXMouseEventArgs. |
Sync() | For internal use. Inherited from DXMouseEventArgs. |
Remarks
The RowCellClick event will not fire when clicking on a row cell, if data editing is enabled and the ColumnViewOptionsBehavior.EditorShowMode property is set to MouseDown (and to Default, if multiple row selection is disabled).
Note
The HitInfo parameter is not initialized when this event fires. Use the BaseView.CalcHitInfo method to get a HitInfo object.