True DBGrid for WinForms | ComponentOne
C1.Win.TrueDBGrid.8 Assembly / C1.Win.TrueDBGrid Namespace / C1TrueDBGrid Class / OwnerDrawCell Event

In This Topic
    OwnerDrawCell Event (C1TrueDBGrid)
    In This Topic
    Occurs before a cell is rendered and the C1DisplayColumn.OwnerDraw is true.
    Syntax
    'Declaration
     
    Public Event OwnerDrawCell As OwnerDrawCellEventHandler
    public event OwnerDrawCellEventHandler OwnerDrawCell
    Event Data

    The event handler receives an argument of type OwnerDrawCellEventArgs containing data related to this event. The following OwnerDrawCellEventArgs properties provide information specific to this event.

    PropertyDescription
    The bounding rectangle for the cell that needs to be rendered.  
    The index of the column in the DisplayColumns collection.  
    The C1DisplayColumn being rendered.  
    Indicates whether the custom renderer handles the background, border or content.  
    The GDI+ graphics object to render on.  
    Indicates whether the event code rendered the cell.  
    The index of the row for the cell being rendered.  
    The index of the split for the cell being rendered.  
    The Style used to render the cell.  
    The text of the cell.  
    See Also