DataGridView.ProcessZeroKey(Keys) 方法

定义

处理 0 键。

protected:
 bool ProcessZeroKey(System::Windows::Forms::Keys keyData);
protected bool ProcessZeroKey(System.Windows.Forms.Keys keyData);
member this.ProcessZeroKey : System.Windows.Forms.Keys -> bool
Protected Function ProcessZeroKey (keyData As Keys) As Boolean

参数

keyData
Keys

表示要处理的键或键的值的 Keys 按位组合。

返回

true 如果已处理密钥,则为否则,为 false.

例外

0 键将导致控件进入编辑模式,但 EditType 当前单元格的属性不指示派生 Control 自和实现 IDataGridViewEditingControl的类。

此操作将导致控件进入编辑模式,但数据源中的错误会阻止该操作,并且没有事件的处理程序 DataError 或处理程序已将 ThrowException 属性 true设置为 。

适用于

另请参阅