AllowHide | bool | Gets or sets if the column can be hidden |
AllowSort | bool | Gets or sets if the column can be sorted |
AriaLabel | string | Gets or sets aria label |
AriaLabelledBy | string | Gets or sets id of component for aria label |
CalculationCssClass | string | Gets or sets css class for column calculation cell |
CalculationDisplayFormat | string | Gets or sets the display format for the calculation cell. |
CalculationType | DataCalculationType | Gets or sets calculation function |
CanAdd | bool | Gets or sets if we can add new lines. |
CanEdit | bool | Gets or sets if the cells are editable |
CanEditSelector | Func<TItem, bool> | Gets or sets a selector deciding, from the item bound to the row, whether this column's cell is editable. Combined with CanEdit and the grid edit capability. Use this instead of capturing the "Columns" context variable in CanEdit (the "Columns" fragment is evaluated only once). |
ColSpan | int | Gets or sets field with column span value |
ConfirmationMessage | string | Gets or sets confirmation message in cell edit mode only |
CssClass | string | Gets or sets css class for all column cells |
CssClassSelector | Func<TItem, string> | Gets or sets a selector returning an additional CSS class for a body cell, from the item bound to the row. Use this instead of capturing the "Columns" context variable in CssClass (the "Columns" fragment is evaluated only once). The selector is also called with a null item for the calculation cell of the column (e.g. to apply a background color to the whole column): a selector reading the item must handle null when the grid has a calculation row. |
DefaultFrozen | bool | Gets or sets if the column is frozen. |
DefaultSortDirection | DataSortDirection | Gets or sets default sort direction |
DefaultVisible | bool | Gets or sets if the column is displayed |
DefaultWidth | string | Gets or set width of the column. Default value : "1fr" |
DisplayFormat | string | Gets or sets the display format. |
DisplayFormatSelector | Func<TItem, string> | Gets or sets a selector returning the display format of a body cell, from the item bound to the row. When set, its per-row result wins over DisplayFormat. Use this instead of capturing the "Columns" context variable in DisplayFormat (the "Columns" fragment is evaluated only once). Affects the read-only display only (not the export nor the group headers). The selector is also called with a null item for the calculation cell: a selector reading the item must handle null when the grid has a calculation row. |
ExportTitle | string | Gets or sets the title used when the column is exported. The column "Title" parameter is used by default. |
ExportValueAsString | bool | Force the current value to be reconize as a string. |
Exportable | bool | Gets or sets if the column is exportable. |
GroupName | string | Gets or sets the column group name. See the LgGroup component for a simplified declaration of column groups. |
GroupSelector | Expression<Func<TItem, object>> | Gets or sets a per-item group key expression item => item.Key. Modern, strongly typed replacement of the obsolete GroupExpression: when set it provides the group key (presence wins over GroupExpression). Same unboxing and remote/local caveats as SortSelector. Frozen once at column registration. |
HeaderCellContent | RenderFragment | Gets or sets header content. |
HeaderCssClass | string | Gets or sets the header CSS class. |
HeaderTooltip | string | Gets or sets tooltip for header cell |
HideContent | bool | Gets or sets if the cells contents are displayed |
HideContentSelector | Func<TItem, bool> | Gets or sets a selector deciding, from the item bound to the row, whether this column's cell content is hidden. When set, its per-row result wins over HideContent. Use this instead of capturing the "Columns" context variable in HideContent (the "Columns" fragment is evaluated only once). The selector is also called with a null item for the calculation cell of the column: a selector reading the item must handle null when the grid has a calculation row. |
Key | string | Gets or sets unique id of the column |
LambdaSelector | Expression<Func<TItem, object>> | Gets or sets a per-item expression item => item.Key shared as the fallback for the filter, the sort and the group. Modern, strongly typed replacement of the obsolete LambdaExpression: when set it enables the filter and the sort and provides the key (presence wins over LambdaExpression). Same unboxing and remote/local caveats as SortSelector. Frozen once at column registration. |
MaxWidth | int | Gets or sets maximal width |
MinWidth | int | Gets or sets minimal width |
OnCellClick | EventCallback<GridViewCellClickEventArgs<TItem>> | Gets or sets cell click event |
Resizable | bool | Gets or sets if the column can be resized |
SortSelector | Expression<Func<TItem, object>> | Gets or sets a per-item sort key expression item => item.Key. Modern, strongly typed replacement of the obsolete SortExpression: when set it enables the column sort and provides the key (presence wins over SortExpression). A value-type key is automatically unboxed so the expression stays translatable to a remote query; a computed key (not a simple member path) works locally only. Frozen once at column registration (changing it at runtime is not supported). |
Title | string | Gets or sets title |
WeightSelector | Expression<Func<TItem, object>> | Gets or sets a per-item weight expression item => item.Weight used to compute the weighted average of the column (requires a DataCalculationType.Average calculation). Modern, strongly typed replacement of the obsolete WeightExpression: when set it provides the weight (presence wins over WeightExpression). A value-type weight is automatically unboxed so the expression stays translatable to a remote query. Frozen once at column registration. |