System.Windows.Forms.DataGridViewCellPaintingEventArgs Class

Provides data for the DataGridView.CellPainting event.

See Also: DataGridViewCellPaintingEventArgs Members


public class DataGridViewCellPaintingEventArgs : System.ComponentModel.HandledEventArgs


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.


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