// handler for a click on one of the gridcell buttons private void HandleCellButtonClick(object sender, DataGridCellButtonClickEventArgs e) { MessageBox.Show("row " + e.RowIndex.ToString() + " col " + e.ColIndex.ToString() + " clicked."); }