protected void ASPxGridView1_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
 {
     DeleteFiles df = new DeleteFiles();
     df.DeleteAllFiles(Convert.ToInt32(e.Keys[0]), acadSerId);
     dll_AcademicService dll = new dll_AcademicService(username, durationId);
     dll.deleteData(Convert.ToInt32(((HiddenField)ASPxGridView1.FindRowCellTemplateControl(ASPxGridView1.FindVisibleIndexByKeyValue(e.Keys[ASPxGridView1.KeyFieldName]), (GridViewDataColumn)ASPxGridView1.Columns["AcademicServiceTypeId"], "hidDeleteId")).Value));
     e.Cancel = true;
     FillGridView();
 }
 protected void ASPxGridView1_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
 {
     DeleteFiles df = new DeleteFiles();
     df.DeleteAllFiles(Convert.ToInt32(e.Keys[0]), directTeachId);
     dll_DirectTeach dt = new dll_DirectTeach(username, dr.getDurationId());
     dt.deleteData(Convert.ToInt32(((HiddenField)ASPxGridView1.FindRowCellTemplateControl(ASPxGridView1.FindVisibleIndexByKeyValue(e.Keys[ASPxGridView1.KeyFieldName]),(GridViewDataColumn)ASPxGridView1.Columns["CourseName"], "hidDeleteId")).Value));
     e.Cancel = true;
     FillGridView();
 }
 protected void ASPxGridView1_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
 {
     try
     {
         DeleteFiles df = new DeleteFiles();
         df.DeleteAllFiles(Convert.ToInt32(e.Keys[0]), stdDevId);
         dll_StudentDevelopment dll = new dll_StudentDevelopment(username, dr.getDurationId());
         dll.deleteData(Convert.ToInt32(((HiddenField)ASPxGridView1.FindRowCellTemplateControl(ASPxGridView1.FindVisibleIndexByKeyValue(e.Keys[ASPxGridView1.KeyFieldName]), (GridViewDataColumn)ASPxGridView1.Columns["StdDevType"], "hidDeleteId")).Value));
         e.Cancel = true;
         FillGridView();
     }
     catch (Exception)
     {
     }
 }
 protected void ASPxGridView2_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
 {
     try
     {
         DeleteFiles df = new DeleteFiles();
         df.DeleteAllFiles(Convert.ToInt32(e.Keys[0]), supervisionId);
         dll_DirectTeach_Supervision dt = new dll_DirectTeach_Supervision(username, dr.getDurationId());
         dt.deleteData(Convert.ToInt32(((HiddenField)ASPxGridView2.FindRowCellTemplateControl(ASPxGridView2.FindVisibleIndexByKeyValue(e.Keys[ASPxGridView2.KeyFieldName]), (GridViewDataColumn)ASPxGridView2.Columns["StudentCount"], "hidDeleteId")).Value));
         e.Cancel = true;
         FillGridView2();
     }
     catch (Exception)
     {
     }
 }
 protected void ASPxGridView2_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
 {
     DeleteFiles df = new DeleteFiles();
     df.DeleteAllFiles(Convert.ToInt32(e.Keys[0]), articleId);
     dll_Research_Article dll = new dll_Research_Article(username, dr.getDurationId());
     dll.deleteData(Convert.ToInt32(((HiddenField)ASPxGridView2.FindRowCellTemplateControl(ASPxGridView2.FindVisibleIndexByKeyValue(e.Keys[ASPxGridView2.KeyFieldName]), (GridViewDataColumn)ASPxGridView2.Columns["ArticleName"], "hidDeleteId")).Value));
     e.Cancel = true;
     FillGridView2();
 }