Exemplo n.º 1
0
        //Grid PageIndex Change
        #region GrdIndexChanged

        protected void GrdDevice_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            try
            {
                objEWA.OrgId         = "1";
                GrdDevice.PageIndex  = e.NewPageIndex;
                GrdDevice.DataSource = objBL.DeviceGridBind_BL(objEWA);
                GrdDevice.DataBind();
            }
            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }
Exemplo n.º 2
0
        // Device Grid Bind
        #region [Device Grid Bind]

        private void GrdDeviceBind()
        {
            try
            {
                objEWA.OrgId = Convert.ToString(orgId);
                DataSet ds = objBL.DeviceGridBind_BL(objEWA);
                GrdDevice.DataSource = ds;
                GrdDevice.DataBind();
            }

            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }