This documentation is archived and is not being maintained.

DataGrid.OnPaint Method

Raises the Paint event.

[Visual Basic]
Overrides Protected Sub OnPaint( _
   ByVal pe As PaintEventArgs _
)
[C#]
protected override void OnPaint(
 PaintEventArgs pe
);
[C++]
protected: void OnPaint(
 PaintEventArgs* pe
);
[JScript]
protected override function OnPaint(
   pe : PaintEventArgs
);

Parameters

pe
A PaintEventArgs which contains data about the event.

Remarks

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

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataGrid Class | DataGrid Members | System.Windows.Forms Namespace

Show: