DataGridViewButtonCell.KeyUpUnsharesRow(KeyEventArgs, Int32) Method
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
A KeyEventArgs that contains the event data.
- rowIndex
- Int32
The index of the cell's parent row.
true
if the user released the SPACE key; otherwise, false
.
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.
Produk | Versi |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: