GridControl.AlternationCount Property
Gets or sets the alternate row frequency. This is a dependency property.
Namespace: DevExpress.UI.Xaml.Grid
Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value that is the alternate row frequency. By default, 0 |
Remarks
The Grid Control allows you to alternate row colors. Use the GridControl.AlternateRowBackground property to set the background color of alternate rows and the AlternationCount property to set the alternate row frequency. Alternatively, use the GridControl.AlternateRowBackgroundPalette property to set a palette of row background colors.
If the AlternationCount property is set to 0, none of the rows has the alternative background. If the AlternationCount property is set to 1, all rows has the alternative background.