OnPaintBackground Method
Collapse the table of content
Expand the table of content

DataGrid.OnPaintBackground Method (PaintEventArgs)


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
© 2016 Microsoft