Class PropertyColumn<T, TProperty>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
Represents a column in a MudDataGrid<T> associated with an object's property.
public class PropertyColumn<T, TProperty> : Column<T>, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IDisposable
Type Parameters
TThe type of object represented by each row in the data grid.
TPropertyThe type of the property whose values are displayed in the column's cells.
- Inheritance
-
Column<T>PropertyColumn<T, TProperty>
- Implements
- Inherited Members
- Extension Methods
Constructors
PropertyColumn()
public PropertyColumn()
Properties
ContentFormat
protected override string? ContentFormat { get; }
Property Value
Format
The format applied to property values.
[Parameter]
public string? Format { get; set; }
Property Value
Remarks
Defaults to null.
Property
The property whose values are displayed in the column.
[Parameter]
[EditorRequired]
public Expression<Func<T, TProperty>> Property { get; set; }
Property Value
- Expression<Func<T, TProperty>>
PropertyExpression
protected override LambdaExpression? PropertyExpression { get; }
Property Value
PropertyName
The name of the property.
public override string? PropertyName { get; }
Property Value
PropertyType
protected override Type PropertyType { get; }
Property Value
Methods
CellContent(T)
protected override object? CellContent(T item)
Parameters
itemT
Returns
OnParametersSet()
protected override void OnParametersSet()
PropertyFunc(T)
protected override object? PropertyFunc(T item)
Parameters
itemT
Returns
SetProperty(object, object?)
protected override void SetProperty(object item, object? value)