DataGridViewRowPrePaintEventArgs::PaintParts Property

 

The cell parts that are to be painted.

Namespace:   System.Windows.Forms
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::DataGridViewPaintParts

A 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: