DataGridViewButtonCell.KeyUpUnsharesRow(KeyEventArgs, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för