DataGridViewRowPostPaintEventArgs Class
Provides data for the RowPostPaint event.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The DataGridViewRowPostPaintEventArgs type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DataGridViewRowPostPaintEventArgs | Initializes a new instance of the DataGridViewRowPostPaintEventArgs class. |
| Name | Description | |
|---|---|---|
![]() | ClipBounds | Gets or sets the area of the DataGridView that needs to be repainted. |
![]() | ErrorText | Gets a string that represents an error message for the current DataGridViewRow. |
![]() | Graphics | Gets the Graphics used to paint the current DataGridViewRow. |
![]() | InheritedRowStyle | Gets the cell style applied to the current DataGridViewRow. |
![]() | IsFirstDisplayedRow | Gets a value indicating whether the current row is the first row displayed in the DataGridView. |
![]() | IsLastVisibleRow | Gets a value indicating whether the current row is the last visible row displayed in the DataGridView. |
![]() | RowBounds | Get the bounds of the current DataGridViewRow. |
![]() | RowIndex | Gets the index of the current DataGridViewRow. |
![]() | State | Gets the state of the current DataGridViewRow. |
| Name | Description | |
|---|---|---|
![]() | DrawFocus | Draws the focus rectangle around the specified bounds. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | PaintCells | Paints the specified cell parts for the area in the specified bounds. |
![]() | PaintCellsBackground | Paints the cell backgrounds for the area in the specified bounds. |
![]() | PaintCellsContent | Paints the cell contents for the area in the specified bounds. |
![]() | PaintHeader(Boolean) | Paints the entire row header of the current DataGridViewRow. |
![]() | PaintHeader(DataGridViewPaintParts) | Paints the specified parts of the row header of the current row. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The RowPostPaint event occurs after a row is painted on a DataGridView control. RowPostPaint allows you to manually adjust the appearance of the row after the cells in the row are painted. This is useful if you want to customize the row.
The following code example demonstrates how to handle the RowPostPaint event to make the content of a cell span the entire row. This code example is part of a larger example provided in How to: Customize the Appearance of Rows in the Windows Forms DataGridView Control.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
