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, change the appearance of the grid as a whole by modifying the built-in named styles in the C1TrueDBGrid Styles Editor. At run time, the GridStyleCollection 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:
Caption |
Grid and split caption bars. |
Editor |
Cell editor within grid. |
EvenRow |
Data cells in even numbered rows. |
Filter Bar |
Data in the filter bar columns. |
Footer |
Column footers. |
Group |
Group columns in grid grouping area. |
Heading |
Column headers. |
HighlightRow |
Data cells in highlighted rows. |
Inactive |
Column headings when another column has focus. |
Normal |
Data cells in unselected, unhighlighted rows. |
OddRow |
Data cells in odd numbered rows. |
Record Selector |
Data in the record selector column. |
Selected |
Data cells in selected rows. |
A selected row is one whose bookmark has been added to the SelectedRowCollection , either in code or through user interaction. The term highlighted row refers to the current row when the MarqueeStyle property is set to MarqueeEnum.HighlightRow or MarqueeEnum.HighlightRowRaiseCell.
The EvenRow and OddRow styles are used only when the AlternatingRows property is set to True.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |