selectedRow property

DataGridRow? get selectedRow

An object of the corresponding selected row.

The given object must be given from the underlying datasource of the SfDataGrid.

Implementation

DataGridRow? get selectedRow => _selectedRow;
set selectedRow (DataGridRow? newSelectedRow)

An object of the corresponding selected row.

The given object must be given from the underlying datasource of the SfDataGrid.

Implementation

set selectedRow(DataGridRow? newSelectedRow) {
  if (_selectedRow == newSelectedRow) {
    return;
  }

  _selectedRow = newSelectedRow;
  _notifyDataGridPropertyChangeListeners(propertyName: 'selectedRow');
}