DataGridColumn<TRowData> Class
public class DataGridColumn<TRowData> : ComponentBase, IDisposableType parameters
TRowData
No documentation is available.
- Inheritance
ComponentBaseDataGridColumn<TRowData>- Implements
Constructors
| Name | Description |
|---|---|
| DataGridColumn() |
DataGridColumn()
public DataGridColumn()No documentation is available.
Properties
| Name | Description |
|---|---|
| ChildContent | Gets or sets custom content for the cell. Takes precedence over DataGridColumn<TRowData>.Expression. |
| Expression | Gets or sets an expression to extract the cell value from the row data. |
| Format | Gets or sets a format string to apply to the cell value (e.g., "0.00" for numbers or "yyyy-MM-dd" for dates). |
| OwnerGrid | Gets or sets the parent DataGrid<TRowData> component. This is set automatically via cascading parameter. |
| Title | Gets or sets the column header title. If not specified, the property name from DataGridColumn<TRowData>.Expression is used. |
ChildContent
DataGridColumn.razorGets or sets custom content for the cell. Takes precedence over DataGridColumn<TRowData>.Expression.
public RenderFragment<TRowData>? ChildContent { get; set; }Property value
Expression
DataGridColumn.razorGets or sets an expression to extract the cell value from the row data.
public Expression<Func<TRowData, object>>? Expression { get; set; }Property value
Format
DataGridColumn.razorOwnerGrid
DataGridColumn.razorGets or sets the parent DataGrid<TRowData> component. This is set automatically via cascading parameter.
public DataGrid<TRowData>? OwnerGrid { get; set; }Property value
Title
DataGridColumn.razorGets 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
Methods
| Name | Description |
|---|---|
| BuildRenderTree(RenderTreeBuilder) | |
| Dispose() | |
| OnInitialized() | |
| OnParametersSet() |
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)Parameters
__builderRenderTreeBuilder
No documentation is available.
Dispose()
DataGridColumn.razorpublic void Dispose()No documentation is available.
OnInitialized()
DataGridColumn.razorprotected override void OnInitialized()No documentation is available.
OnParametersSet()
DataGridColumn.razorprotected override void OnParametersSet()No documentation is available.