GridTextColumn class Null safety
A column which displays the values of the string in its cells.
This column has all the required APIs to customize the widget Text as it displays Text for all the cells.
@override
Widget build(BuildContext context) {
return SfDataGrid(
source: employeeDataSource,
columns: [
GridTextColumn(columnName: 'name', label: Text('Name')),
GridTextColumn(columnName: 'designation', label: Text('Designation')),
],
);
}
- Inheritance
-
- Object
- GridColumn
- GridTextColumn
- Annotations
-
- @Deprecated('Use GridColumn instead.')
Constructors
- GridTextColumn({required String columnName, required Widget label, ColumnWidthMode columnWidthMode = ColumnWidthMode.none, EdgeInsets autoFitPadding = const EdgeInsets.all(16.0), bool visible = true, bool allowSorting = true, ColumnHeaderIconPosition sortIconPosition = ColumnHeaderIconPosition.end, ColumnHeaderIconPosition filterIconPosition = ColumnHeaderIconPosition.end, double minimumWidth = double.nan, double maximumWidth = double.nan, double width = double.nan, bool allowEditing = true})
-
Creates a String column using
columnName
andlabel
.
Properties
- actualWidth → double
-
The actual display width of the column when auto fitted based on
SfDataGrid.columnWidthMode or columnWidthMode.
read-onlyinherited
- allowEditing → bool
-
Decides whether cell should be moved into edit mode based on
SfDataGrid.editingGestureType.
finalinherited
- allowFiltering → bool
-
Decides whether the UI filtering should be enabled for this column.
finalinherited
- allowSorting → bool
-
Decides whether user can sort the column simply by tapping the column
header.
finalinherited
- autoFitPadding → EdgeInsets
-
The amount of space which should be added with the auto size calculated
when you use SfDataGrid.columnWidthMode as ColumnWidthMode.auto or
ColumnWidthMode.fitByCellValue or ColumnWidthMode.fitByColumnName
option.
finalinherited
- columnName → String
-
The name of a column.The name should be unique.
finalinherited
- columnWidthMode → ColumnWidthMode
-
How the column widths are determined.
finalinherited
- filterIconPadding → EdgeInsetsGeometry
-
The amount of space which should be added with the filter icon
finalinherited
- filterIconPosition → ColumnHeaderIconPosition
-
The position of the filter icon in the column headers.
Typically, filter icon is placed next to sort icon.
finalinherited
- filterPopupMenuOptions → FilterPopupMenuOptions?
-
Decides how the checked listbox and advanced filter options should be shown in filter popup.
finalinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- label → Widget
-
The label of column header.
finalinherited
- maximumWidth → double
-
The maximum width of the column.
finalinherited
- minimumWidth → double
-
The minimum width of the column.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sortIconPosition → ColumnHeaderIconPosition
-
The position of the sort icon in the column headers.
finalinherited
- visible → bool
-
Whether column should be hidden.
finalinherited
- width → double
-
The width of the column.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited