How to implement callbacks for cell and row focus change?

This issue has been tracked since 2022-11-21.

Discussed in #2708

Originally posted by ScarletJack October 21, 2021
Loving the grid so far guys, I have a question though.

Is there a way to implement callbacks based on the focused cell/row element?

For example:

let onCellFocusChange = (e) =>{
      console.log(e) // e being an object containing the data/index/id of the current row

I basically want to be able to set the selected row based on keyboard input. and setting active data as a state based on current selected row after. Is my approach correct? Are there alternatives?

More Details About Repo
Owner Name adazzle
Repo Name react-data-grid
Full Name adazzle/react-data-grid
Language TypeScript
Created Date 2015-03-06
Updated Date 2023-03-23
Star Count 5922
Watcher Count 129
Fork Count 2072
Issue Count 161


Issue Title Created Date Updated Date