private void txtSearch_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { if (dgvMemberslist.RowCount == 0) { frmMemeberDetails frmmembers = new frmMemeberDetails(2); frmmembers.Show(); } } }
private void dgvMemberslist_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { frmMemeberDetails frmmembers = new frmMemeberDetails(2); frmmembers.Show(); }