True DBGrid for WinForms | ComponentOne
C1.Win.C1TrueDBGrid.4.8 Assembly / C1.Win.C1TrueDBGrid Namespace / C1TrueDBGrid Class / OwnerDrawCellPrint Event

In This Topic
    OwnerDrawCellPrint Event (C1TrueDBGrid)
    In This Topic
    Occurs before a cell is to be printed and the C1DisplayColumn.OwnerDraw is true.
    Syntax
    'Declaration
     
    Public Event OwnerDrawCellPrint As OwnerDrawCellEventHandler
    public event OwnerDrawCellEventHandler OwnerDrawCellPrint
    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