selectedRows property

List<DataGridRow> get selectedRows

The collection of objects that contains object of corresponding to the selected rows in SfDataGrid.

Implementation

List<DataGridRow> get selectedRows => _selectedRows;
set selectedRows (List<DataGridRow> newSelectedRows)

The collection of objects that contains object of corresponding to the selected rows in SfDataGrid.

Implementation

set selectedRows(List<DataGridRow> newSelectedRows) {
  if (_selectedRows == newSelectedRows) {
    return;
  }

  _selectedRows = newSelectedRows;
  _notifyDataGridPropertyChangeListeners(propertyName: 'selectedRows');
}