DataGrid.OnPaintBackground Method (PaintEventArgs)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected override void OnPaintBackground(
	PaintEventArgs ebe


Type: System.Windows.Forms.PaintEventArgs

A PaintEventArgs that contains information about the control to paint.

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.

.NET Framework
Available since 1.1
Return to top