Raises the OnPaint event.
[Visual Basic] Overrides Protected Sub OnPaint( _ ByVal pe As PaintEventArgs _ ) [C#] protected override void OnPaint( PaintEventArgs pe ); [C++] protected: override void OnPaint( PaintEventArgs* pe ); [JScript] protected override function OnPaint( pe : PaintEventArgs );
Raising an event invokes the event-handling method through a delegate. For an overview, see TBD.
Notes to Inheritors When overriding OnPaint in a derived class, be sure to call the base class's OnPaint method.
DataGrid Class | DataGrid Members | System.WinForms Namespace