Table of Contents

Class TemplateColumn<T>

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents an additional column for a MudDataGrid<T> which isn't tied to data.

public class TemplateColumn<T> : Column<T>, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IDisposable

Type Parameters

T

The type of data represented by this column.

Inheritance
TemplateColumn<T>
Implements
Inherited Members
Extension Methods

Constructors

TemplateColumn()

public TemplateColumn()

Properties

DragAndDropEnabled

Allows this column to be reordered via drag-and-drop operations.

[Parameter]
public override bool? DragAndDropEnabled { get; set; }

Property Value

bool?

Remarks

Defaults to false. When set, this overrides the DragDropColumnReordering property.

Filterable

Allows filters to be used on this column.

[Parameter]
public override bool? Filterable { get; set; }

Property Value

bool?

Remarks

Defaults to false. When set, this overrides the Filterable property.

PropertyName

The name of this column.

public override string PropertyName { get; }

Property Value

string

Resizable

Allows this column's width to be changed.

[Parameter]
public override bool? Resizable { get; set; }

Property Value

bool?

ShowColumnOptions

Shows options for this column.

[Parameter]
public override bool? ShowColumnOptions { get; set; }

Property Value

bool?

Remarks

Defaults to false. When set, this overrides the ShowColumnOptions property.

Sortable

Sorts values in this column.

[Parameter]
public override bool? Sortable { get; set; }

Property Value

bool?

Remarks

Defaults to false. When set, this overrides the SortMode property.

Methods

CellContent(T)

protected override object? CellContent(T item)

Parameters

item T

Returns

object

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