GetErrorIconBounds Method

DataGridViewButtonCell.GetErrorIconBounds Method

This member overrides DataGridViewCell.GetErrorIconBounds(Graphics, DataGridViewCellStyle, Int32), and more complete documentation might be available in that topic.

Returns the bounding rectangle that encloses the cell's error icon, if one is displayed.

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

protected override Rectangle GetErrorIconBounds(
	Graphics graphics,
	DataGridViewCellStyle cellStyle,
	int rowIndex


Type: System.Drawing.Graphics

The graphics context for the cell.

Type: System.Windows.Forms.DataGridViewCellStyle

The DataGridViewCellStyle to be applied to the cell.

Type: System.Int32

The index of the cell's parent row.

Return Value

Type: System.Drawing.Rectangle
The Rectangle that bounds the cell's error icon, if one is displayed; otherwise, Empty.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

© 2015 Microsoft