C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : DrawMode Property |
'Declaration
<C1DescriptionAttribute("Gets or sets whether the control should fire the OwnerDrawCell event.")> <DefaultValueAttribute()> <C1CategoryAttribute("Behavior")> Public Property DrawMode As DrawModeEnum
'Usage
Dim instance As C1FlexGridBase Dim value As DrawModeEnum instance.DrawMode = value value = instance.DrawMode
[C1Description("Gets or sets whether the control should fire the OwnerDrawCell event.")] [DefaultValue()] [C1Category("Behavior")] public DrawModeEnum DrawMode {get; set;}
[C1Description("Gets or sets whether the control should fire the OwnerDrawCell event.")] [DefaultValue()] [C1Category("Behavior")] public: property DrawModeEnum DrawMode { DrawModeEnum get(); void set ( DrawModeEnum value); }
If you set this property to DrawModeEnum.OwnerDraw, the grid will fire the 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 OwnerDrawCell event.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2