| Visual Basic (Declaration) | |
|---|---|
Public Property IsAlternatingRowStyleEnabled As Boolean | |
| C# | |
|---|---|
public bool IsAlternatingRowStyleEnabled {get; set;} | |
Return Value
true if an alternate style is applied to every other row; false otherwise. The default value of this property is usually false; however, for some themes, alternate row styles may be enabled by default.All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to enable alternating row styles.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> | |
This property represents the local CLR property of the IsAlternatingRowStyleEnabled attached property.
Supported Frameworks: Microsoft .NET Framework version 3.5
Copy Code