FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridRenderer Class / OnDrawCell Method / OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs) Method
C1FlexGridBase that contains the cell being drawn.
OwnerDrawCellEventArgs that provides information about the cell being drawn.

In This Topic
    OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs) Method
    In This Topic
    Draws a grid cell of any type.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub OnDrawCell( _
       ByVal flex As C1FlexGridBase, _
       ByVal e As OwnerDrawCellEventArgs _
    ) 
    public virtual void OnDrawCell( 
       C1FlexGridBase flex,
       OwnerDrawCellEventArgs e
    )

    Parameters

    flex
    C1FlexGridBase that contains the cell being drawn.
    e
    OwnerDrawCellEventArgs that provides information about the cell being drawn.
    Remarks
    This method determines the type of cell being drawn and then calls the OnDrawCell(C1FlexGridBase,OwnerDrawCellEventArgs,CellType) method passing the type of cell to be drawn.
    See Also