GridColumn constructor
GridColumn({
- required String columnName,
- required Widget label,
- ColumnWidthMode columnWidthMode = ColumnWidthMode.none,
- bool visible = true,
- bool allowSorting = true,
- ColumnHeaderIconPosition sortIconPosition = ColumnHeaderIconPosition.end,
- ColumnHeaderIconPosition filterIconPosition = ColumnHeaderIconPosition.end,
- EdgeInsets autoFitPadding = const EdgeInsets.all(16.0),
- double minimumWidth = double.nan,
- double maximumWidth = double.nan,
- double width = double.nan,
- bool allowEditing = true,
- bool allowFiltering = true,
- FilterPopupMenuOptions? filterPopupMenuOptions,
- EdgeInsetsGeometry filterIconPadding = const EdgeInsets.symmetric(horizontal: 8.0),
Creates the GridColumn for SfDataGrid widget.
Implementation
GridColumn(
{required this.columnName,
required this.label,
this.columnWidthMode = ColumnWidthMode.none,
this.visible = true,
this.allowSorting = true,
this.sortIconPosition = ColumnHeaderIconPosition.end,
this.filterIconPosition = ColumnHeaderIconPosition.end,
this.autoFitPadding = const EdgeInsets.all(16.0),
this.minimumWidth = double.nan,
this.maximumWidth = double.nan,
this.width = double.nan,
this.allowEditing = true,
this.allowFiltering = true,
this.filterPopupMenuOptions,
this.filterIconPadding = const EdgeInsets.symmetric(horizontal: 8.0)}) {
_actualWidth = double.nan;
_autoWidth = double.nan;
}