diff --git a/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md b/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md index 973820914614..f200d91e3f40 100644 --- a/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md +++ b/aspnetcore/release-notes/aspnetcore-10/includes/blazor.md @@ -1,15 +1,15 @@ ### QuickGrid `RowClass` parameter -Apply a stylesheet class to a row of the grid based on the row item using the new `RowClass` parameter. In the following example, the `ApplyRowStyle` method is called on each row to conditionally apply a stylesheet class based on the row item: +Apply a stylesheet class to a row of the grid based on the row item using the new `RowClass` parameter. In the following example, the `GetRowCssClass` method is called on each row to conditionally apply a stylesheet class based on the row item: ```razor - + ... @code { - private string ApplyRowStyle({TYPE} rowItem) => - rowItem.{PROPERTY} == {VALUE} ? "{CSS STYLE CLASS}" : null; + private string GetRowCssClass(MyGridItem item) => + item.IsArchived ? "row-archived" : null; } ```