DataGridViewCell.OnKeyDown(KeyEventArgs, Int32) DataGridViewCell.OnKeyDown(KeyEventArgs, Int32) DataGridViewCell.OnKeyDown(KeyEventArgs, Int32) DataGridViewCell.OnKeyDown(KeyEventArgs, Int32) Method

Definición

Se le llama cuando se presiona una tecla de carácter mientras el foco está en una celda.Called when a character key is pressed while the focus is on a cell.

protected:
 virtual void OnKeyDown(System::Windows::Forms::KeyEventArgs ^ e, int rowIndex);
protected virtual void OnKeyDown (System.Windows.Forms.KeyEventArgs e, int rowIndex);
abstract member OnKeyDown : System.Windows.Forms.KeyEventArgs * int -> unit
override this.OnKeyDown : System.Windows.Forms.KeyEventArgs * int -> unit
Protected Overridable Sub OnKeyDown (e As KeyEventArgs, rowIndex As Integer)

Parámetros

e
KeyEventArgs KeyEventArgs KeyEventArgs KeyEventArgs

Objeto KeyEventArgs que contiene los datos del evento.A KeyEventArgs that contains the event data.

rowIndex
Int32 Int32 Int32 Int32

El índice de la fila primaria de la celda.The index of the cell's parent row.

Comentarios

Este método es similar al Control.OnKeyDown método.This method is similar to the Control.OnKeyDown method. Se llama en las mismas circunstancias en las que se KeyDown genera un evento, pero realmente no provoca el evento.It is called in the same circumstances in which a KeyDown event is raised, but it does not actually raise the event.

Se aplica a

Consulte también: