[]
Specifies which elements of the cell should be drawn by the grid.
[Flags]
public enum DrawCellFlags
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.
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). |