FlexGrid for WinForms
DrawCellFlags Enumeration



Specifies which elements of the cell should be drawn by the grid.
Syntax
'Declaration
 
<FlagsAttribute()>
Public Enum DrawCellFlags 
   Inherits System.Enum
'Usage
 
Dim instance As DrawCellFlags
[Flags()]
public enum DrawCellFlags : System.Enum 
[Flags()]
public enum class DrawCellFlags : public System.Enum 
Members
MemberDescription
AllDraw all cell elements (background, border, and contents).
BackgroundDraw the cell background.
BorderDraw the cell border.
ContentDraw the cell content (text, images, check boxes, etc).
Remarks

This enumeration is used when rendering owner-drawn cells.

If you set the System.Windows.Forms.DrawMode property to DrawModeEnum.OwnerDraw, the grid will fire the C1FlexGridBase.OwnerDrawCell event to allow custom cell drawing.

The OwnerDrawCellEventArgs parameter passed to the event handler has a OwnerDrawCellEventArgs.DrawCell method that allows you to use the standard drawing routines for rendering parts of the cell. For example, you can paint a custom background and use the standard drawing routines for the cell borders and content.

See the C1FlexGridBase.OwnerDrawCell event for an example.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         C1.Win.C1FlexGrid.DrawCellFlags

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

C1.Win.C1FlexGrid Namespace

 

 


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

Send Feedback