Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DataGridViewRowPostPaintEventArgs Constructor

DataGridViewRowPostPaintEventArgs.DataGridViewRowPostPaintEventArgs Constructor

Initializes a new instance of the DataGridViewRowPostPaintEventArgs class.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public DataGridViewRowPostPaintEventArgs (
	DataGridView dataGridView,
	Graphics graphics,
	Rectangle clipBounds,
	Rectangle rowBounds,
	int rowIndex,
	DataGridViewElementStates rowState,
	string errorText,
	DataGridViewCellStyle inheritedRowStyle,
	bool isFirstDisplayedRow,
	bool isLastVisibleRow
)
public DataGridViewRowPostPaintEventArgs (
	DataGridView dataGridView, 
	Graphics graphics, 
	Rectangle clipBounds, 
	Rectangle rowBounds, 
	int rowIndex, 
	DataGridViewElementStates rowState, 
	String errorText, 
	DataGridViewCellStyle inheritedRowStyle, 
	boolean isFirstDisplayedRow, 
	boolean isLastVisibleRow
)
public function DataGridViewRowPostPaintEventArgs (
	dataGridView : DataGridView, 
	graphics : Graphics, 
	clipBounds : Rectangle, 
	rowBounds : Rectangle, 
	rowIndex : int, 
	rowState : DataGridViewElementStates, 
	errorText : String, 
	inheritedRowStyle : DataGridViewCellStyle, 
	isFirstDisplayedRow : boolean, 
	isLastVisibleRow : boolean
)
Not applicable.

Parameters

dataGridView

The DataGridView that owns the row that is being painted.

graphics

The Graphics used to paint the DataGridViewRow.

clipBounds

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

rowBounds

A Rectangle that contains the bounds of the DataGridViewRow that is being painted.

rowIndex

The row index of the cell that is being painted.

rowState

A bitwise combination of DataGridViewElementStates values that specifies the state of the row.

errorText

An error message that is associated with the row.

inheritedRowStyle

A DataGridViewCellStyle that contains formatting and style information about the row.

isFirstDisplayedRow

true to indicate whether the current row is the first row currently displayed in the DataGridView; otherwise, false.

isLastVisibleRow

true to indicate whether the current row is the last row in the DataGridView that has the Visible property set to true; otherwise, false.

Exception typeCondition

ArgumentNullException

dataGridView is a null reference (Nothing in Visual Basic).

-or-

graphics is a null reference (Nothing in Visual Basic).

-or-

inheritedRowStyle is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft