DataGridColumn<TRowData> Class

public class DataGridColumn<TRowData> : ComponentBase, IDisposable

Type parameters

TRowData

No documentation is available.

Inheritance
ComponentBase DataGridColumn<TRowData>
Implements

Constructors

NameDescription
DataGridColumn()

DataGridColumn()

public DataGridColumn()

No documentation is available.

Properties

NameDescription
ChildContentGets or sets custom content for the cell. Takes precedence over DataGridColumn<TRowData>.Expression.
ExpressionGets or sets an expression to extract the cell value from the row data.
FormatGets or sets a format string to apply to the cell value (e.g., "0.00" for numbers or "yyyy-MM-dd" for dates).
OwnerGridGets or sets the parent DataGrid<TRowData> component. This is set automatically via cascading parameter.
TitleGets or sets the column header title. If not specified, the property name from DataGridColumn<TRowData>.Expression is used.

Gets or sets custom content for the cell. Takes precedence over DataGridColumn<TRowData>.Expression.

public RenderFragment<TRowData>? ChildContent { get; set; }

Gets or sets an expression to extract the cell value from the row data.

public Expression<Func<TRowData, object>>? Expression { get; set; }

Gets or sets a format string to apply to the cell value (e.g., "0.00" for numbers or "yyyy-MM-dd" for dates).

public string? Format { get; set; }

Property value

string?

Gets or sets the parent DataGrid<TRowData> component. This is set automatically via cascading parameter.

public DataGrid<TRowData>? OwnerGrid { get; set; }

Property value

DataGrid<TRowData>?

Gets or sets the column header title. If not specified, the property name from DataGridColumn<TRowData>.Expression is used.

public string? Title { get; set; }

Property value

string?

Methods

NameDescription
BuildRenderTree(RenderTreeBuilder)
Dispose()
OnInitialized()
OnParametersSet()

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

No documentation is available.

public void Dispose()

No documentation is available.

OnInitialized()

DataGridColumn.razor
protected override void OnInitialized()

No documentation is available.

OnParametersSet()

DataGridColumn.razor
protected override void OnParametersSet()

No documentation is available.