FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / CellStyleEnum Enumeration
Example Example

In This Topic
    CellStyleEnum Enumeration
    In This Topic
    Enumeration used to retrieve CellStyle objects from the C1FlexGridBase.Styles collection.
    Syntax
    'Declaration
     
    
    Public Enum CellStyleEnum 
       Inherits System.Enum
    public enum CellStyleEnum : System.Enum 
    Members
    MemberDescription
    AlternateStyle used to render scrollable cells in even-numbered rows.
    EditorStyle used to render cells being edited.
    EmptyAreaStyle used to render the area of the grid where there are no cells.
    FilterEditorStyle used to paint the filter editors.
    FirstCustomStyleConstant that indicates the first custom style.
    FixedStyle used to render fixed cells.
    FocusStyle used to render the cell that has the focus.
    FooterStyle used to paint the footers.
    FrozenStyle used to render cells that are frozen (editable and selectable, but not scrollable).
    FrozenAlternateStyle used to render cells that are frozen (editable and selectable, but not scrollable) in even-numbered rows.
    GrandTotalStyle automatically assigned to grand total nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method.
    HighlightStyle used to render cells that are selected and highlighted.
    HoverStyle used to render hovered cells.
    NewRowStyle used to render the last row on the grid when the C1FlexGridBase.AllowAddNew property is set to true.
    NormalStyle used to render scrollable normal cells.
    SearchStyle used to render cells that are being selected as the user types (see the C1FlexGridBase.AutoSearch property).
    SelectedColumnHeaderStyle used to render selected column headers.
    SelectedRowHeaderStyle used to render selected row headers.
    Subtotal0Style automatically assigned to level-0 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method.
    Subtotal1Style automatically assigned to level-1 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method.
    Subtotal2Style automatically assigned to level-2 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method.
    Subtotal3Style automatically assigned to level-3 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method.
    Subtotal4Style automatically assigned to level-4 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method.
    Subtotal5Style automatically assigned to level-5 nodes created with the C1.Win.C1FlexGrid.C1FlexGridBase.Subtotal(C1.Win.C1FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.C1FlexGrid.AggregateFlags,C1.Win.C1FlexGrid.RowColFlags) method.
    Remarks
    Cell styles can be retrieved from the C1FlexGridBase.Styles collection using the indexer or the style name. Built-in styles can also be obtained directly through read-only properties.
    Example
    The code below shows three ways to obtain a reference to a grid's default style:
    // s1, s2, and s3 are all references to the grid's Normal style:
    CellStyle s1 = _flex.Styles[CellStyleEnum.Normal];
    CellStyle s2 = _flex.Styles["Normal"];
    CellStyle s3 = _flex.Styles.Normal;
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             C1.Win.C1FlexGrid.CellStyleEnum

    See Also