Skip to main content

TcxCustomGridTableViewStyles.UseOddEvenStyles Property

Specifies if the grid View uses alternate styles to paint odd and even rows.

Declaration

property UseOddEvenStyles: TdxDefaultBoolean read; write; default bDefault;

Property Value

Type Default Description
TdxDefaultBoolean bDefault

Enumerates True, False, and default values.

Remarks

Options include:

Value Description
bTrue The grid View applies alternating styles assigned to the ContentOdd and ContentEven properties. If a skin is applied to the TcxGrid control, you can use the skin’s GridLikeControlContentOddColor and GridLikeControlContentEvenColor settings instead.
bFalse The grid View applies the style assigned to the Content style to all rows. If a skin is applied to the TcxGrid control, use the skin’s GridLikeControlContentColor setting to change the background color.
bDefault The grid View applies the specified alternating styles or skin colors only if the GridLikeControlContentOddColor setting differs from either the GridLikeControlContentColor or GridLikeControlContentEvenColor setting.

The UseOddEvenStyles property’s default value is bDefault.

See Also