DataGridViewImageCell Constructor (Boolean)


Initializes a new instance of the DataGridViewImageCell class, optionally configuring it for use with Icon cell values.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public DataGridViewImageCell(
	bool valueIsIcon


Type: System.Boolean

The cell will display an Icon value.

When you use this constructor, the ValueIsIcon property is set to the value of the valueIsIcon parameter.

To ensure that the alpha channel of Icon values is painted correctly, use this constructor with a valueIsIcon parameter value of true.

If the valueIsIcon parameter is true, the FormattedValueType and ValueType properties return a Type object representing the Icon type.

.NET Framework
Available since 2.0
Return to top