CellFocusEvent

Defines event arguments for cell focus events in the Data Grid. Provides detailed context about the focused cell, including its position, data, and triggering event. Used to handle focus-related interactions and updates.

Props

The following table outlines the props for the CellFocusEvent:

NameTypeDefaultDescription
column
null

Contains the column configuration associated with the focused cell. Provides metadata such as field name, data type, or formatting for the column. Enables access to column-specific properties during focus events.

columnIndex
number
-

Specifies the zero-based column index of the focused cell in the grid. Identifies the column position of the cell that has received focus. Used for tracking or processing the focused column’s context.

data
T
null

Contains the data object associated with the focused cell’s row. Provides access to the row’s record data for processing or display. Useful for retrieving context about the focused cell’s content.

event
MouseEvent | KeyboardEvent
null

Contains the synthetic event object that triggered the focus event. Provides details about the user action (e.g., click or keypress) that caused the focus change. Useful for advanced event handling or custom logic.

rowIndex
number
-

Specifies the zero-based row index of the focused cell in the grid. Identifies the row position of the cell that has received focus. Used for tracking or processing the focused row’s context.