예제 #1
0
 private void btndelete_Click(object sender, EventArgs e)
 {
     try
     {
         persond.NIC = txtfind.Text;
         pbal.Delete_Per(persond);
         MessageBox.Show("Record Delete Successfull", "Employee", MessageBoxButtons.OK, MessageBoxIcon.Information);
         GridView1.DataSource = pbal.Bind_Getdata();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "Delete Error");
     }
 }