FlexGrid for WinForms
DrawCellFlags Enumeration

Specifies which elements of the cell should be drawn by the grid.
Public Enum DrawCellFlags 
   Inherits System.Enum
Dim instance As DrawCellFlags
public enum DrawCellFlags : System.Enum 
public enum class DrawCellFlags : public System.Enum 
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).

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



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


C1.Win.C1FlexGrid Namespace



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

Send Feedback