FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / GetCellStyle Method / GetCellStyle(Int32,String) Method
Row index.
Column name.

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

    Parameters

    row
    Row index.
    colName
    Column name.

    Return Value

    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 GetCellStyleDisplay method.
    See Also