TreeList.RowClick Event
Fires when a row (node) is clicked.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.1.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
Declaration
Event Data
The RowClick event's data class is RowClickEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Button | Gets which mouse button was pressed. Inherited from MouseEventArgs. |
Clicks | Gets the number of times the mouse button was pressed and released. Inherited from MouseEventArgs. |
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 UI element. |
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. |
Node | Gets the row (node) being clicked. Inherited from NodeClickEventArgs. |
Point | Gets the mouse pointer’s location. Inherited from NodeClickEventArgs. |
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 RowClick event fires before the TreeList.RowCellClick when clicking on any element of a row (cell, expand button, select image, state image, indicator cell, preview section, or the row’s area not occupied by any of these elements). The event provides the following arguments:
- Node—the row being clicked (see TreeListNode);
- HitInfo—the information about visual elements located at the click point (see TreeList.CalcHitInfo).
Note
This event does not fire if:
- cell editing is enabled (see TreeListOptionsBehavior.Editable), and
- the cell editor is invoked before the mouse button is released (see TreeListOptionsBehavior.EditorShowMode).