Table of Contents

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

T

The type of object represented by each row in the data grid.

TProperty

The type of the property whose values are displayed in the column's cells.

Inheritance
PropertyColumn<T, TProperty>
Implements
Inherited Members
Extension Methods

Constructors

PropertyColumn()

public PropertyColumn()

Properties

ContentFormat

protected override string? ContentFormat { get; }

Property Value

string

Format

The format applied to property values.

[Parameter]
public string? Format { get; set; }

Property Value

string

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

LambdaExpression

PropertyName

The name of the property.

public override string? PropertyName { get; }

Property Value

string

PropertyType

protected override Type PropertyType { get; }

Property Value

Type

Methods

CellContent(T)

protected override object? CellContent(T item)

Parameters

item T

Returns

object

OnParametersSet()

protected override void OnParametersSet()

PropertyFunc(T)

protected override object? PropertyFunc(T item)

Parameters

item T

Returns

object

SetProperty(object, object?)

protected override void SetProperty(object item, object? value)

Parameters

item object
value object