DataGrid hide data according to a property value


I wonder if I can hide data on the data grid based on a value? Let's say in my data, I have IsActive = 0 and I don't want to display it on the data grid. I mean the entire row that includes this IsActive = 0.

Thank you.

Just filter the data before displaying it in the DataGrid.

<RadzenDataGrid Data=@data TItem="MyItem">...</RadzenDataGrid>
@code {
    IEnumerable<MyItem> data;

   protected override OnInitialized()
       data = GetData().Where(o => o.IsActive == 0);
1 Like