ComponentOne List for WinForms
In This Topic
    Built-in Named Styles
    In This Topic

    When a list 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. In the designer, you can change the appearance of the list as a whole by modifying the built-in named styles in the Style Collection Editor. In code, the GridStyleCollection object provides access to the same set of named styles. Initially, all lists contain ten built-in styles, which control the display of the following list elements:

    Style Description
    Normal Data cells in unselected, unhighlighted rows
    Heading Column headers
    Footer Column footers
    Caption List and split caption bars
    Selected Data cells in selected rows
    HighlightRow Data cells in highlighted rows
    EvenRow Data cells in even numbered rows
    OddRow Data cells in odd numbered rows
    RecordSelector Data in the record selector column
    Group Group columns in list grouping area

    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 ForeColor property is set to HighlightText.

    The EvenRow and OddRow styles are used only when the AlternatingRows property is set to True.

    See Also