DataControlBase.AlternationCount Property
In This Article
Gets or sets the alternate row frequency. This is a dependency property.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Property Value
Type | Description |
---|---|
Int32 | An alternate row frequency |
#Remarks
The GridControl allows you to alternate row colors. To enable row alternation, set the AlternationCount property to an alternate row frequency. Use the DataControlBase.AlternateRowBackground property to set the background color of alternate rows. You can also use the DataControlBase.AlternateRowBackgroundPalette property to specify a palette of row background colors.
<dxg:GridControl AlternationCount="2" AlternateRowBackground="PaleVioletRed" .../>
See Also