DataGrid<TRowData> Class
public class DataGrid<TRowData> : ComponentBaseType parameters
TRowData
No documentation is available.
- Inheritance
ComponentBaseDataGrid<TRowData>
Constructors
| Name | Description |
|---|---|
| DataGrid() |
DataGrid()
DataGrid.razorpublic DataGrid()No documentation is available.
Properties
| Name | Description |
|---|---|
| ChildContent | Gets or sets the child content, which should contain DataGridColumn<TRowData> components. |
| Items | Gets or sets the collection of items to display in the grid. |
| RowClass | Gets or sets a function to determine the CSS class for each row based on the row data and index. |
| RowKey | Gets or sets a function that returns a stable, unique key for each row, used as the @key of the row element. Keys must be unique among the rendered rows; a duplicate key makes the renderer throw. When not specified, the row index is used, which is always unique. |
| TableAttributes | Gets or sets additional attributes to apply to the table element. |
ChildContent
DataGrid.razorGets or sets the child content, which should contain DataGridColumn<TRowData> components.
public RenderFragment? ChildContent { get; set; }Property value
Items
DataGrid.razorGets or sets the collection of items to display in the grid.
public IEnumerable<TRowData>? Items { get; set; }Property value
RowClass
DataGrid.razorGets or sets a function to determine the CSS class for each row based on the row data and index.
Property value
RowKey
DataGrid.razorGets or sets a function that returns a stable, unique key for each row, used as the @key of the row element. Keys must be unique among the rendered rows; a duplicate key makes the renderer throw. When not specified, the row index is used, which is always unique.
Property value
TableAttributes
DataGrid.razorGets or sets additional attributes to apply to the table element.
public Dictionary<string, object>? TableAttributes { get; set; }Property value
Methods
| Name | Description |
|---|---|
| BuildRenderTree(RenderTreeBuilder) |
BuildRenderTree(RenderTreeBuilder)
DataGrid.razorprotected override void BuildRenderTree(RenderTreeBuilder __builder)Parameters
__builderRenderTreeBuilder
No documentation is available.