DataGrid.OnPaintBackground Method (PaintEventArgs)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
Show: