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.ProcessKeyPreview

Previews a keyboard message and returns a value indicating if the key was consumed.

[Visual Basic]
Overrides Protected Function ProcessKeyPreview( _
   ByRef m As Message _
) As Boolean
[C#]
protected override bool ProcessKeyPreview(
   ref Message m
);
[C++]
protected: override bool ProcessKeyPreview(
   Message** m
);
[JScript]
protected override function ProcessKeyPreview(
   m : Message
) : Boolean;

Parameters

m
A Message that contains data about the event. The parameter is passed by reference.

Return Value

true, if the key was consumed; otherwise, false.

Remarks

This method is called by a child control when the child control receives a keyboard message. The child control calls this method before generating any keyboard events for the message. If this method returns true, the child control considers the message consumed and does not generate any keyboard events.

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace