'Declaration
<SRCategoryAttribute("CatDisplay")> <SRDescriptionAttribute("DataGridView_CellPaintingDescr")> Public Event CellPainting As System.Windows.Forms.DataGridViewCellPaintingEventHandler
'Usage
Dim instance As NDataGridView Dim handler As System.Windows.Forms.DataGridViewCellPaintingEventHandler AddHandler instance.CellPainting, handler
[SRCategory("CatDisplay")] [SRDescription("DataGridView_CellPaintingDescr")] public event System.Windows.Forms.DataGridViewCellPaintingEventHandler CellPainting
Event Data
The event handler receives an argument of type System.Windows.Forms.DataGridViewCellPaintingEventArgs containing data related to this event. The following DataGridViewCellPaintingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
AdvancedBorderStyle | Gets the border style of the current System.Windows.Forms.DataGridViewCell. |
CellBounds | Get the bounds of the current System.Windows.Forms.DataGridViewCell. |
CellStyle | Gets the cell style of the current System.Windows.Forms.DataGridViewCell. |
ClipBounds | Gets the area of the System.Windows.Forms.DataGridView that needs to be repainted. |
ColumnIndex | Gets the column index of the current System.Windows.Forms.DataGridViewCell. |
ErrorText | Gets a string that represents an error message for the current System.Windows.Forms.DataGridViewCell. |
FormattedValue | Gets the formatted value of the current System.Windows.Forms.DataGridViewCell. |
Graphics | Gets the System.Drawing.Graphics used to paint the current System.Windows.Forms.DataGridViewCell. |
Handled | (Inherited from System.ComponentModel.HandledEventArgs) |
PaintParts | The cell parts that are to be painted. |
RowIndex | Gets the row index of the current System.Windows.Forms.DataGridViewCell. |
State | Gets the state of the current System.Windows.Forms.DataGridViewCell. |
Value | Gets the value of the current System.Windows.Forms.DataGridViewCell. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also