DataGridView.ProcessNextKey(Keys) 方法

定义

处理 Page Down 键。Processes the PAGE DOWN key.

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

参数

keyData
Keys

Keys 值的按位组合,这些值表示要处理的一个或多个键。A bitwise combination of Keys values that represents the key or keys to process.

返回

如果已处理该键,则为 true;否则为 falsetrue if the key was processed; otherwise, false.

异常

“向下翻页”键将导致该控件进入编辑模式,但当前新的单元格的 EditType 属性不指示派生自 Control 并实现 IDataGridViewEditingControl的类。The PAGE DOWN key would cause the control to enter edit mode, but the EditType property of the new current cell does not indicate a class that derives from Control and implements IDataGridViewEditingControl.

此操作将提交一个单元格值或者进入编辑模式,但是数据源中的错误禁止执行此操作,DataError 事件没有处理程序,或者处理程序已将 ThrowException 属性设置为 trueThis action would commit a cell value or enter edit mode, but an error in the data source prevents the action and either there is no handler for the DataError event or the handler has set the ThrowException property to true.

安全性

SecurityPermission
用于调用非托管代码。for calling unmanaged code. 需求值: LinkDemandDemand value: LinkDemand. 权限值: UnmanagedCodePermission value: UnmanagedCode

适用于

另请参阅