System.Windows.Forms.DataGridViewCellPaintingEventArgs Class

Provides data for the DataGridView.CellPainting event.

See Also: DataGridViewCellPaintingEventArgs Members

Syntax

public class DataGridViewCellPaintingEventArgs : System.ComponentModel.HandledEventArgs

Remarks

The DataGridView.CellPainting event is raised for each System.Windows.Forms.DataGridViewCell that is visible on a System.Windows.Forms.DataGridView. To improve performance, set the properties in a System.Windows.Forms.DataGridViewCellPaintingEventArgs to change the appearance of the cell instead of directly accessing a cell in the System.Windows.Forms.DataGridView. If you manually paint the cell, set the System.ComponentModel.HandledEventArgs.Handled property to true. If you do not set System.ComponentModel.HandledEventArgs.Handled to true, the cell will paint over your customizations.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0