ComponentOne List 8.0 for ActiveX
Cell style evaluation order

The following list defines the order in which cell styles are applied relative to the anonymous styles of a list, split, or column.

  1. Style property, TDBList control. The default named parent of this anonymous style is Normal.

  2. Style property, Split object. By default, this anonymous style inherits from its TDBList control counterpart.

  3. EvenRowStyle and OddRowStyle properties, Split object. By default, these anonymous styles inherit from their TDBList control counterparts, which in turn have default named parents of EvenRow and OddRow. These properties apply only if the AlternatingRowStyle property is True.

  4. Style property, Column object. By default, this anonymous style inherits from its Split object counterpart.

  5. FetchRowStyle event. This event fires only if the FetchRowStyle property is True for a list or split.

  6. SelectedStyle property, Split object. By default, this anonymous style inherits from its TDBList control counterpart, which in turn has a default named parent of Selected. This property applies only to selected rows; that is, rows whose bookmarks have been added to the SelBookmarks collection through code or user interaction.

  7. HighlightRowStyle property, Split object. By default, this anonymous style inherits from its TDBList control counterpart, which in turn has a default named parent of HighlightRow.

  8. AddRegexCellStyle method, if called. Cell styles specified at the Column object level have the highest priority, followed by those specified at the Split object and TDBList control levels. Within an object level, cell styles are tested in the order in which they were added in code. Cell styles do not inherit from one another; as soon as a match is found, testing stops.

  9. FetchCellStyle event. This event fires only if the FetchStyle property is True for a Column object.

Thus, you always have final control over the rendering of a cell via the FetchCellStyle event.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback