コード例 #1
0
ファイル: frmDHKP.cs プロジェクト: nguy3n47/ptudcsdl1
 private void xoa_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow r in dsdkhp.Rows)
     {
         if ((bool)r.Cells["chon"].Value == true)
         {
             dal_dkhp.deleteDKHP_sv(r.Cells["masv"].Value.ToString(), r.Cells["mamh"].Value.ToString());
         }
     }
     dt = dal_dkhp.loadDSDKHP(dssv.SelectedValue.ToString());
     initGrid(dssv.SelectedValue.ToString());
 }
コード例 #2
0
 private void xoa_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow r in listDKHP.Rows)
     {
         if ((bool)r.Cells["chon"].Value == true)
         {
             dal_dkhp.deleteDKHP_sv(r.Cells["masv"].Value.ToString(), r.Cells["mamh"].Value.ToString());
         }
     }
     //string masv = listSV.Rows[listSV.CurrentCell.RowIndex].Cells["masv"].Value.ToString();
     initGriddkhp(masv);
 }