Пример #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            gvGrp.AutoGenerateColumns = false;
            txtId.Enabled             = true;
            bool sgrp = false;
            bool rgrp = false;

            Contacts.Service1 ser = new Contacts.Service1();
            string            grp = ser.grpCreator(myUtill.loginUser.Userid);

            ser.UpdateGroup(txtId.Text, txtGrp.Text, grp, out sgrp, out rgrp);

            BindingSource bs = new BindingSource();

            bs.DataSource    = ser.GetData(myUtill.loginUser.Userid);
            gvGrp.DataSource = bs;
            lblmsg.Text      = "Successfully Updated ";
        }