Leer en inglés

Compartir a través de


DataGrid.BackButtonClick Evento

Definición

Se produce cuando se hace clic en el botón Back de una tabla secundaria.

C#
public event EventHandler BackButtonClick;

Tipo de evento

Ejemplos

En el ejemplo de código siguiente se agrega un controlador de eventos para el BackButtonClick evento.

C#
// Create an instance of the 'BackButtonClick' EventHandler.
private void CallBackButtonClick()
{
   myDataGrid.BackButtonClick += new EventHandler(Grid_BackClick);
}

// Raise the event when 'BackButton' on child table is clicked.
private void Grid_BackClick(object sender, EventArgs e)
{
   // String variable used to show message.
   string myString = "BackButtonClick event raised, showing parent table";
   // Show information about Back button.
   MessageBox.Show(myString, "Back button information");
}

Comentarios

El Back botón se vuelve visible cuando se muestra una tabla secundaria. Al hacer clic en el botón, la cuadrícula mostrará la tabla primaria.

Se aplica a

Producto Versiones
.NET Framework 1.1, 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, 10

Consulte también