void LoadData() { DataTable dt = TextUtils.Select("select * from BaoLoi"); if (dt == null) { BaoLoiBO.KhoiTaoGrid(); } }
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); }