private void btn_add_Click(object sender, EventArgs e) { if (cmbCon.Items.Count == 0) { MessageBox.Show("Add Group Please !"); return; } bool addConR; bool AddCons; Contacts.Service1 s = new Contacts.Service1(); s.AddContact(myUtill.loginUser.Userid, cmbCon.SelectedValue.ToString(), txtName.Text, txtDOB.Text, txtMOB.Text, txtEMAIL.Text, txtADR.Text, out addConR, out AddCons); BindingSource b = new BindingSource(); b.DataSource = s.GetCon(); gvCon.DataSource = b; lblmsg.Text = "Successfully Added"; }