語言

DataGridViewButtonCell.KeyUpUnsharesRow(KeyEventArgs, Int32) 方法

定義

表示當鍵放開且焦點放在該列中的某個格子時,該列是否為未共享。

protected:
 override bool KeyUpUnsharesRow(System::Windows::Forms::KeyEventArgs ^ e, int rowIndex);
protected override bool KeyUpUnsharesRow(System.Windows.Forms.KeyEventArgs e, int rowIndex);
override this.KeyUpUnsharesRow : System.Windows.Forms.KeyEventArgs * int -> bool
Protected Overrides Function KeyUpUnsharesRow (e As KeyEventArgs, rowIndex As Integer) As Boolean

參數

e
KeyEventArgs

KeyEventArgs A 包含事件資料。

rowIndex
Int32

該格子父列的索引。

傳回

true如果使用者放開空格鍵;否則,。 false

備註

KeyUpUnsharesRow該方法在方法之前OnKeyUp被呼叫。 true若呼叫 時,若 與 OnKeyUp 相同KeyEventArgs參數 的調用會取消共享該列 rowIndex。 否則應該會恢復 false 正常。

如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。

適用於

另請參閱