ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / GetCellStyle Method / GetCellStyle(Int32,Int32) Method
Row index.
Column index.

In This Topic
    GetCellStyle(Int32,Int32) Method
    In This Topic
    Gets a custom C1.Win.C1FlexGrid.CellStyle associated with a cell.
    Syntax
    'Declaration
     
    Public Overloads Function GetCellStyle( _
       ByVal row As Integer, _
       ByVal col As Integer _
    ) As CellStyle
    public CellStyle GetCellStyle( 
       int row,
       int col
    )

    Parameters

    row
    Row index.
    col
    Column index.

    Return Value

    C1.Win.C1FlexGrid.CellStyle object associated with the cell, or null if the cell doesn't have a custom style.
    Remarks
    If the cell doesn't have a custom style, the grid paints it using one of the built-in styles. The built-in style is selected based on the cell position and state (fixed, scrollable, highlighted, etc). To retrieve the style that will be used to paint the cell (custom or built-in) use the C1.Win.C1FlexGrid.C1FlexGridBase.GetCellStyleDisplay method.
    See Also