buildRow method

  1. @override
DataGridRowAdapter? buildRow(
  1. DataGridRow row
)

Called to obtain the widget for each cell of the row.

This method will be called for every row that are visible in datagrid’s view port from the collection which is assigned to DataGridSource.rows property.

Return the widgets in the order in which those should be displayed in each column of a row in DataGridRowAdapter.cells.

The number of widgets in the collection must be exactly as many cells as SfDataGrid.columns in the SfDataGrid.

This method will be called whenever you call the notifyListeners method.

Implementation

@override
DataGridRowAdapter? buildRow(DataGridRow row) {
  return xBuildRow(row as XDataGridRow);
}