public void storeUser_Refresh(object sender, StoreReadDataEventArgs e) { DataTable dtU = new DataTable(); DataTable dtS = new DataTable(); AppUserQuery uQ = new AppUserQuery("a"); uQ.es2.Connection.Name = "KENCANA"; ServiceUnitQuery sQ = new ServiceUnitQuery("b"); sQ.es2.Connection.Name = "KENCANA"; dtU = uQ.LoadDataTable(); dtS = sQ.LoadDataTable(); storeUser.DataSource = dtU; storeUser.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { DataTable dtU = new DataTable(); DataTable dtS = new DataTable(); AppUserQuery uQ = new AppUserQuery("a"); uQ.SelectAll(); uQ.es2.Connection.Name = "KENCANA"; ServiceUnitQuery sQ = new ServiceUnitQuery("b"); sQ.SelectAll(); sQ.es2.Connection.Name = "KENCANA"; dtU = uQ.LoadDataTable(); dtS = sQ.LoadDataTable(); storeServiceUnit.DataSource = dtS; storeServiceUnit.DataBind(); storeUser.DataSource = dtU; storeUser.DataBind(); smGrdServiceUnit.Select(0); smGrdServiceUnit.UpdateSelection(); } }