private void bindingNavigatorEditItem_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count < 1) return; var srNo = Convert.ToInt64(dataGridView1.SelectedRows[0].Cells["SrNo"].Value); // ask for password //Loginfrm frmLogin = new Loginfrm(HomePage.UserDetail); //frmLogin.ShowDialog(); //if (!frmLogin.IsLogedIn) // return; var frm = new Candidatefrm(srNo); frm.ShowDialog(); uniDb.Refresh(System.Data.Linq.RefreshMode.KeepChanges, pagination.PageData); BindGridView(); }
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { var frm = new Candidatefrm(); frm.ShowDialog(); uniDb.Refresh(System.Data.Linq.RefreshMode.KeepChanges, pagination.PageData); BindGridView(); }