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 _
protected override void OnPaint(
 PaintEventArgs pe
protected: void OnPaint(
 PaintEventArgs* pe
protected override function OnPaint(
   pe : PaintEventArgs


A PaintEventArgs which contains data about the event.


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.


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