FlexGrid for WinForms
DrawMode Property



Gets or sets whether the control should fire the OwnerDrawCell event.
Syntax
'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);
}
Remarks

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.

Requirements

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

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback