Ejemplo n.º 1
0
        void LoadData()
        {
            DataTable dt = TextUtils.Select("select * from BaoLoi");

            if (dt == null)
            {
                BaoLoiBO.KhoiTaoGrid();
            }
        }
Ejemplo n.º 2
0
 public void SelectAll(ref DataTable dt, GridControl grd)
 {
     try
     {
         //if (searchLookUpEdit1.EditValue != null)
         {
             dt = TextUtils.Select("SELECT * FROM BaoLoi ORDER BY TinhTrangKhacPhuc");
             if (dt == null || dt.Rows.Count <= 0)
             {
                 dt = BaoLoiBO.KhoiTaoGrid();
             }
             grdData.DataSource = dt;
         }
     }
     catch (Exception)
     {
         throw;
     }
     //leWeek_EditValueChanged(null, null);
 }