Selection
Row selection
Community
Enable row-selection controls in the leading row indicator:
FdcGrid(
dataSet: customers,
rowIndicator: const FdcGridRowIndicator(
visible: true,
options: FdcGridRowIndicatorOptions(
showRecordStatus: true,
showRowNumbers: true,
showRowSelect: true,
),
),
)
Row selection is distinct from the dataset current record. A grid can keep a current row for navigation and editing while multiple rows are selected for a batch operation.
Use the dataset selection API for application commands:
dataSet.selection.selectCurrent();
dataSet.selection.unselectCurrent();
dataSet.selection.toggleCurrent();
final selectedCustomers = dataSet.selection.rows();
rows() returns value snapshots, making it suitable for export and batch-action workflows without exposing mutable dataset internals.
Range selection
Pro
FdcProGrid can also enable rectangular cell ranges for copy, paste, context-menu, and single-value fill workflows. This is a separate interaction model from record selection.
See Range Selection for configuration and behavior details.