ItemsSource
Specifies an item source (usually a list) to be rendered inside grid.
razor
[Parameter] public IEnumerable? ItemsSource { get; set; }
Example
razor
<DataGrid T="Product" ItemsSource="Products"> <GridColumn DataField="Name" /> </DataGrid> @code { public List<Product> Products { get; set; } }