onCellBeginEdit method

bool onCellBeginEdit(
  1. DataGridRow dataGridRow,
  2. RowColumnIndex rowColumnIndex,
  3. GridColumn column
)
inherited

Called whenever the cell is moved into edit mode.

If you want to disable editing for the cells in specific scenarios, you can return false.

rowColumnIndex represents the index of row and column which are currently in view not based on the actual index. If you want to get the actual row index even after sorting is applied, you can use DataGridSource.rows.indexOf method and pass the dataGridRow. It will provide the actual row index from unsorted DataGridRow collection.

Implementation

bool onCellBeginEdit(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex,
    GridColumn column) {
  return true;
}