private void dgvRequestList_KeyUp(object sender, KeyEventArgs e) { if ((e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) && SelectedRequest != null) { e.SuppressKeyPress = true; e.Handled = true; RequestRowDoubleClick.Raise(sender, new RequestDetailEventArgs { Network = Network, RequestID = SelectedRequest.ID, DataMartID = SelectedRequest.DataMartID }); } }
private void dgvRequestList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var r = SelectedRequest; if (r != null) { RequestRowDoubleClick.Raise(sender, new RequestDetailEventArgs { Network = Network, RequestID = r.ID, DataMartID = r.DataMartID }); } }