System.Windows.Forms.DataGrid.OnPaintBackground Method

Overrides Control.OnPaintBackground(PaintEventArgs) to prevent painting the background of the System.Windows.Forms.DataGrid control.

Syntax

protected override void OnPaintBackground (PaintEventArgs ebe)

Parameters

ebe
A System.Windows.Forms.PaintEventArgs that contains information about the control to paint.

Remarks

Because the System.Windows.Forms.DataGrid is a complex control, this override is implemented to have no action. Therefore, calling this method will have no effect.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0