System.Windows.Forms.DataGridViewRowPrePaintEventArgs Class

Provides data for the DataGridView.RowPrePaint event.

See Also: DataGridViewRowPrePaintEventArgs Members

Syntax

public class DataGridViewRowPrePaintEventArgs : System.ComponentModel.HandledEventArgs

Remarks

The DataGridView.RowPrePaint event occurs before a row is painted on a System.Windows.Forms.DataGridView control. DataGridView.RowPrePaint enables you to manually adjust the appearance of the row before any of the cells in the row are painted. This is useful if you want to customize the row, such as to produce a row where the content of one column spans multiple columns. Use the properties in System.Windows.Forms.DataGridViewRowPrePaintEventArgs to get the settings of the row without directly accessing the row in the System.Windows.Forms.DataGridView.

Requirements

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