This documentation is archived and is not being maintained.

DataGrid.BackButtonClick Event

Occurs when the Back button on a child table is clicked.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

public event EventHandler BackButtonClick
/** @event */
public void add_BackButtonClick (EventHandler value)

/** @event */
public void remove_BackButtonClick (EventHandler value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

The Back button becomes visible when a child table is displayed. Clicking the button will cause the grid to display the parent table.

The following code example adds an event handler for the BackButtonClick event.

// 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");

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0