Пример #1
0
        private void btn_update_Click(object sender, EventArgs e)
        {
            bool updateCon;
            bool updateConR;

            Contacts.Service1 s = new Contacts.Service1();
            s.UpdateContacts(txtId.Text, txtName.Text, txtDOB.Text,
                             txtMOB.Text, txtEMAIL.Text, txtADR.Text, out updateCon, out updateConR);

            BindingSource bs = new BindingSource();

            bs.DataSource    = s.GetCon();
            gvCon.DataSource = bs;

            lblmsg.Text = "Successfully Updated ";
        }