DataGrid.OnPaint 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.

Raises the Paint event.

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

protected override void OnPaint(
	PaintEventArgs pe
)

Parameters

pe
Type: System.Windows.Forms.PaintEventArgs

A PaintEventArgs which contains data about the event.

Raising an event invokes the event handler through a delegate. For an overview, see NIB: Raising an Event.

Notes to Inheritors:

When overriding OnPaint in a derived class, be sure to call the base class's OnPaint method.

.NET Framework
Available since 1.1
Return to top
Show: