DataGridView.ProcessNextKey(Keys) 方法

定義

處理 PAGE DOWN 鍵。

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 值的位元 (Bitwise) 組合,表示要處理的按鍵。

傳回

如果已處理按鍵,則為 true;否則為 false

例外狀況

PAGE DOWN 鍵會讓控制項進入編輯模式,但新的目前儲存格的 EditType 屬性不會指出衍生自 Control 的類別並實作 IDataGridViewEditingControl

這個動作會認可儲存格值或進入編輯模式,但是資料來源中的錯誤會阻止這個動作,而且 DataError 事件沒有處理常式或處理常式已將 ThrowException 屬性設定為 true

適用於

另請參閱