System.Windows.Forms.DataGridViewPaintParts Enumeration

Defines values for specifying the parts of a System.Windows.Forms.DataGridViewCell that are to be painted.

Syntax

[System.Flags]
public enum DataGridViewPaintParts

Remarks

This enumeration is used by the protected DataGridViewCell.Paint(System.Drawing.Graphics, System.Drawing.Rectangle, System.Drawing.Rectangle, int, DataGridViewElementStates, object, object, string, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) method and by handlers for the DataGridView.CellPainting, DataGridView.RowPrePaint, and DataGridView.RowPostPaint events of the System.Windows.Forms.DataGridView control.

Members

Member NameDescription
All

All parts of the cell should be painted.

Background

The background of the cell should be painted.

Border

The border of the cell should be painted.

ContentBackground

The background of the cell content should be painted.

ContentForeground

The foreground of the cell content should be painted.

ErrorIcon

The cell error icon should be painted.

Focus

The focus rectangle should be painted around the cell.

None

Nothing should be painted.

SelectionBackground

The background of the cell should be painted when the cell is selected.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0