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!

DataGridBoolColumn.KeyPress

Provides a handler for determining which key was pressed, and whether to process it.

[Visual Basic]
Overrides Public Function KeyPress( _
   ByVal rowNum As Integer, _
   ByVal keyData As Keys _
) As Boolean
[C#]
public override bool KeyPress(
   int rowNum,
   Keys keyData
);
[C++]
public: override bool KeyPress(
   int rowNum,
   Keys keyData
);
[JScript]
public override function KeyPress(
   rowNum : int,
   keyData : Keys
) : Boolean;

Parameters

rowNum
The number of the row where the key press occurs.
keyData
A Keys which contains data about the key that was pressed.

Return Value

true if the key press is handled and the grid does not process it any further; otherwise, false.

Remarks

Pressing the space bar toggles the value of the column (from true, to false, to a null reference (in Visual Basic Nothing)).

See Also

DataGridBoolColumn Class | DataGridBoolColumn Members | System.WinForms Namespace