Επεξεργασία

Κοινή χρήση μέσω


DataGridViewButtonCell.KeyUpUnsharesRow(KeyEventArgs, Int32) Method

Definition

Indicates whether a row is unshared when a key is released while the focus is on a cell in the row.

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

Parameters

e
KeyEventArgs

A KeyEventArgs that contains the event data.

rowIndex
Int32

The index of the cell's parent row.

Returns

true if the user released the SPACE key; otherwise, false.

Remarks

The KeyUpUnsharesRow method is called just before the OnKeyUp method. It must return true if the call to OnKeyUp with the same KeyEventArgs argument has the effect of unsharing the row rowIndex. It should return false otherwise.

For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.

Applies to

See also