Skip to content

Commit 175a402

Browse files
committed
small adds
1 parent 21afa25 commit 175a402

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

controls/datagrid/theming-and-styles/style-selectors.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ You can set a distinct style to a specific cell in a given column based on custo
2323
## Row Background Style Selector
2424

2525
You can set a different style on a row, an alternate row, and on row details based on custom style-selection logic by using the `RowBackgroundStyleSelector` (`IStyleSelector`) property.
26+
To apply a `RowBackgroundStyleSelector` follow these steps:
27+
1. Create a custom class that inherits from `IStyleSelector`.
28+
1. Implement the `SelectStyle` method.
29+
1. The object item of the `SelectStyle` method is of type `DataGridRowInfo`. The `DataGridRowInfo` represents a class that provides information for each row in DataGrid and exposes the follwoing properties:
30+
31+
* `Item` (`object`)—Gets the business object associated with the row.
32+
* `IsRowDetails` (`bool`)`—Gets a value that specifies whether the row is RowDetail.
33+
* `IsAlternate` (`bool`)—Gets a value that specifies whether the row is an alternate one.
34+
2635

2736
> For the DataGrid Row Background Style Selector example, go to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to the **DataGrid > Styling** category.
2837

0 commit comments

Comments
 (0)