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;
true if the key press is handled and the grid does not process it any further; otherwise, false.
Pressing the space bar toggles the value of the column (from true, to false, to a null reference (in Visual Basic Nothing)).
DataGridBoolColumn Class | DataGridBoolColumn Members | System.WinForms Namespace