private void radGridView1_DoubleClick(object sender, EventArgs e) { if (radGridView1.CurrentRow?.DataBoundItem == null) { return; } DeckForm deckForm = new DeckForm(radGridView1.CurrentRow.DataBoundItem as Deck); deckForm.Show(); }
private void gridViewDecks_CellDoubleClick(object sender, GridViewCellEventArgs e) { if (gridViewDecks.CurrentRow?.DataBoundItem == null) { return; } DeckForm deckForm = new DeckForm(gridViewDecks.CurrentRow.DataBoundItem as Deck); deckForm.Show(); }