ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / DrawMode Property

In This Topic
    DrawMode Property (C1FlexPivotGrid)
    In This Topic
    Gets or sets whether the control should fire the C1.Win.C1FlexGrid.C1FlexGridBase.OwnerDrawCell event.
    Syntax
    'Declaration
     
    Public Property DrawMode As DrawModeEnum
    public DrawModeEnum DrawMode {get; set;}
    Remarks

    If you set this property to C1.Win.C1FlexGrid.DrawModeEnum.OwnerDraw, the grid will fire the C1.Win.C1FlexGrid.C1FlexGridBase.OwnerDrawCell event whenever a cell needs to be painted. You can handle the event and customize the way each cell is painted, either by changing the cell contents and style, or by taking over the painting and doing it yourself.

    For more details and examples, see the C1.Win.C1FlexGrid.C1FlexGridBase.OwnerDrawCell event.

    See Also