Export (0) Print
Expand All
Expand Minimize

DataGridViewCell.PaintErrorIcon Method

Paints the error icon of the current DataGridViewCell.

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

abstract PaintErrorIcon : 
        graphics:Graphics * 
        clipBounds:Rectangle * 
        cellValueBounds:Rectangle * 
        errorText:string -> unit  
override PaintErrorIcon : 
        graphics:Graphics * 
        clipBounds:Rectangle * 
        cellValueBounds:Rectangle * 
        errorText:string -> unit


Type: System.Drawing.Graphics

The Graphics used to paint the border.

Type: System.Drawing.Rectangle

A Rectangle that represents the area of the DataGridView that needs to be repainted.

Type: System.Drawing.Rectangle

The bounding Rectangle that encloses the cell's content area.

Type: System.String

An error message that is associated with the cell.

The errorText parameter signals the existence of an error. If errorText is a null reference (Nothing in Visual Basic) or String.Empty, the PaintErrorIcon method does nothing.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft