FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / Styles Property

In This Topic
    Styles Property (C1FlexGridBase)
    In This Topic
    Gets the collection of cell styles defined in the grid.
    Syntax
    'Declaration
     
    
    Public Property Styles As CellStyleCollection
    public CellStyleCollection Styles {get; set;}
    Remarks

    The Styles property enables you to obtain a reference to the list of styles that are currently defined in the grid. With this reference, you can add, remove, and count the styles. For more information on the tasks that can be performed with this collection, see the CellStyleCollection class reference topics. For information on cell formatting, see the CellStyle reference topics.

    This property is read-only. The grid creates and manages the collection for you.

    Upgrade Note: The VSFlexGrid ActiveX control had many properties that affected the way the grid was displayed (e.g. BackColor, BackColorAlternate, BackColorBkg, BackColorFixed, BackColorFrozen, BackColorSel, and so on). The C1FlexGrid control replaces all these properties with a collection of CellStyle objects. This makes the object model simpler, more consistent, and more powerful. You can change the built-in styles or define your own, and assign them to rows, columns, or arbitrary cell ranges.

    See Also