How to Use Styles > Built-in Named Styles |
When a grid is first created, it has a collection of built-in named styles that control various aspects of its display. For example, the Heading style determines the attributes used to display column headers. At design time, you can change the appearance of the grid as a whole by modifying the built-in named styles on the Style Factory property page. At run time, the Styles collection provides access to the same set of named styles. Initially, all grids contain ten built-in styles, which control the display of the following grid elements:
Normal |
Data cells in unselected, unhighlighted rows. |
Heading |
Column headers. |
Footing |
Column footers. |
Selected |
Data cells in selected rows. |
Caption |
Grid and split caption bars. |
HighlightRow |
Data cells in highlighted rows. |
EvenRow |
Data cells in even numbered rows. |
OddRow |
Data cells in odd numbered rows. |
Record Selector |
Data in the record selector column. |
Filter Bar |
Data in the filter bar columns. |
A selected row is one whose bookmark has been added to the SelBookmarks collection, either in code or through user interaction. The term highlighted row refers to the current row when the MarqueeStyle property is set to 3 - Highlight Row or 4 - Highlight Row, Raise Cell.
The EvenRow and OddRow styles are used only when the AlternatingRowStyle property is set to True.