[]
        
(Showing Draft Content)

C1.Win.FlexGrid.DrawCellFlags

DrawCellFlags Enum

Specifies which elements of the cell should be drawn by the grid.

Namespace: C1.Win.FlexGrid
Assembly: C1.Win.FlexGrid.8.dll
Syntax
[Flags]
public enum DrawCellFlags
Remarks

This enumeration is used when rendering owner-drawn cells.

If you set the DrawMode property to OwnerDraw, the grid will fire the OwnerDrawCell event to allow custom cell drawing.

The OwnerDrawCellEventArgs parameter passed to the event handler has a DrawCell(DrawCellFlags) 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 OwnerDrawCell event for an example.

Fields

Name Description
All

Draw all cell elements (background, border, and contents).

Background

Draw the cell background.

Border

Draw the cell border.

Content

Draw the cell content (text, images, check boxes, etc).