Skip to content

Commit 6fbabbb

Browse files
authored
Patch the QuickGrid row style example (#34819)
1 parent fffaf07 commit 6fbabbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aspnetcore/blazor/components/quickgrid.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,18 @@ Apply a stylesheet class to a row of the grid based on the row item using the `R
202202
In the following example:
203203

204204
* A row item is represented by the `Person` [record](/dotnet/csharp/language-reference/builtin-types/record). The `Person` record includes a `FirstName` property.
205-
* The `HighlightJulie` method applies the `highlight` class styles to any row where the person's first name is "`Julie`."
205+
* The `GetRowCssClass` method applies the `highlight-row` class styles to any row where the person's first name is "`Julie`."
206206

207207
```razor
208-
<QuickGrid ... RowClass="HighlightJulie">
208+
<QuickGrid ... RowClass="GetRowCssClass">
209209
...
210210
</QuickGrid>
211211
212212
@code {
213213
private record Person(int PersonId, string FirstName, string LastName);
214214
215-
private string HighlightJulie(Person person) =>
216-
person.FirstName == "Julie" ? "highlight" : null;
215+
private string GetRowCssClass(Person person) =>
216+
person.FirstName == "Julie" ? "highlight-row" : null;
217217
}
218218
```
219219

0 commit comments

Comments
 (0)