DataGridViewCell.KeyUpUnsharesRow(KeyEventArgs, Int32) Metodo

Definizione

Indica se la riga padre non è condivisa quando l'utente rilascia un tasto mentre lo stato attivo si trova sulla cella.

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

Parametri

e
KeyEventArgs

Oggetto KeyEventArgs contenente i dati dell'evento.

rowIndex
Int32

Indice della riga padre della cella.

Valori restituiti

truese la riga verrà annullata, in caso contrario. false La classe base DataGridViewCell restituisce falsesempre .

Commenti

Il KeyUpUnsharesRow metodo viene chiamato poco prima del OnKeyUp metodo . Deve restituire true se la chiamata a OnKeyUp con lo stesso KeyEventArgs argomento ha l'effetto di annullare ilsharing della riga contenente la cella. In caso contrario, deve restituire false.

Per altre informazioni sulla condivisione di righe, vedere Procedure consigliate per ridimensionare il controllo DataGridView di Windows Form.

Si applica a

Vedi anche