NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.OnKeyPress

Raises the OnKeyPress event.

[Visual Basic]
Overrides Protected Sub OnKeyPress( _
   ByVal kpe As KeyPressEventArgs _
)
[C#]
protected override void OnKeyPress(
   KeyPressEventArgs kpe
);
[C++]
protected: override void OnKeyPress(
   KeyPressEventArgs* kpe
);
[JScript]
protected override function OnKeyPress(
   kpe : KeyPressEventArgs
);

Parameters

kpe
A KeyPressEventArgs that contains data about the OnKeyPress event

Example

Raising an event invokes the event-handling method through a delegate. For an overview, see TBD.

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

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace