ComponentOne List for WinForms
C1.Win.C1List.ListBase Namespace / C1ListBase Class / OwnerDrawCell Event

In This Topic
    OwnerDrawCell Event (C1ListBase)
    In This Topic
    Fires just before the cell is to be painted when the column's 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