DataGridViewRowPrePaintEventArgs::PaintParts Property
.NET Framework (current version)
The cell parts that are to be painted.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property DataGridViewPaintParts PaintParts { DataGridViewPaintParts get(); void set(DataGridViewPaintParts value); }
Property Value
Type: System.Windows.Forms::DataGridViewPaintPartsA bitwise combination of DataGridViewPaintParts values specifying the parts to be painted.
| Exception | Condition |
|---|---|
| ArgumentException | The specified value when setting this property is not a valid bitwise combination of DataGridViewPaintParts values. |
The following code example illustrates the use of this property. This example is part of a larger example available in How to: Customize the Appearance of Rows in the Windows Forms DataGridView Control.
.NET Framework
Available since 2.0
Available since 2.0
Show: