示例#1
0
        /// <summary>
        /// update method to update the data in the database
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void UpdateButton(object sender, EventArgs e)
        {
            em.empid = int.Parse(txtEmpId.Text);
            AddDataToEmployee();
            user.UpdateEmployeeBAL(em);
            user.GetData();
            DataTable dt = new DataTable();

            dt = user.GetData();
            empGrid.DataSource = dt;
            ClearData();
        }