private void DeleteRow(int FieldID, int Dflag)
 {
     ICustomFields CustomFields;
     try
     {
         CustomFields = (ICustomFields)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomFields,BusinessProcess.Administration");
         icount = CustomFields.DeleteCustomFields(Convert.ToInt32(FieldID), Convert.ToInt32(Dflag));
         DataSet theDS = CustomFields.GetCustomFields(Convert.ToInt32(Session["SystemId"].ToString()));
         this.grdCustomfields.DataSource = theDS.Tables[0];
         grdCustomfields.DataBind();
     }
     catch (Exception ex)
     {
         ex.Message.ToString();
     }
     finally
     {
         CustomFields = null;
     }
 }