RowSelectEvent

Represents event arguments for row selection events in the Data Grid component. Provides detailed context about selected rows, including data and DOM elements. Used to handle post-selection logic or UI updates in the row.

Props

The following table outlines the props for the RowSelectEvent:

NameTypeDefaultDescription
data
T | T[]
-

Contains the data object associated with the selected row. Provides access to the record data for single or multiple selected rows for processing or display. Returns a single object for single selection or an array for multiple selections.

deSelectedCurrentRowIndexes
number[]
[ ]

Contains zero-based indexes of rows newly deselected during the current interaction. Excludes rows that were already unselected before the event. Used in multiple selection mode to track incremental deselection changes.

deSelectedRowIndex
number
-

Specifies the zero-based index of the deselected row in the grid. Identifies the position of the deselected row within the data source for reference or manipulation. Used in single selection mode or to track the primary deselected row.

event
MouseEvent | KeyboardEvent
null

The React event that triggered the row selection. Can be a mouse or keyboard event, depending on the user's interaction. Provides access to event metadata such as target element, key pressed, or mouse coordinates, enabling contextual handling of selection logic.

row
Element | Element[]
null

References the DOM elements of the selected rows. Provides access to the row elements for styling, manipulation, or other DOM operations. Returns a single element or an array based on selection mode.

selectedCurrentRowIndexes
number[]
[ ]

Contains zero-based indexes of rows newly selected during the current interaction. Excludes rows that were already selected before the event. Used in multiple selection mode to track incremental selection changes.

selectedRowIndex
number
-

Specifies the zero-based index of the selected row in the grid. Identifies the position of the selected row within the data source for reference or manipulation. Used in single selection mode or to track the primary selected row.

selectedRowIndexes
number[]
[ ]

Contains an array of zero-based indexes for all selected rows. Used in multiple selection mode to track all rows currently highlighted. Enables bulk processing of selected row positions.