BackColorRepeat Property

Gets or sets the number of rows to repeat before alternating the background color.

object.BackColorRepeat = [integer]

Client support

   Newlook Smartclient

   Newlook Server

Use

This property is useful when you need to visually differentiate multi-line records in a grid control.

If set to a value greater than one then the colors specified in the DataBackColor and DataAltBackColor properties will be applied to that number of rows before alternating. The default setting for this property is 1.

TIP:

This setting will not be evident if DataBackColor and DataAltBackColor are set to the same color.

BE AWARE THAT:

The BackColorRepeat property will only be applied in the grid if the UseHostColors property is False. Similarly, for individual columns of the datagrid, the BackColorRepeat property will only be applied if the UseColors property is set to True.

See Also

DataBackColor property | DataAltBackColor property | UseHostColors property | UseColors property

Applies To

DataGrid control


© 2004-2021 looksoftware. All rights reserved.