protected void ordersGridView_SelectedIndexChanging(object sender, GridViewPageEventArgs e)
        {
            DeluxeGrid1.PageIndex = e.NewPageIndex;
            DataSet ds          = ObjData.Getlist();
            int     recordCount = ObjData.GetOrdersCount();

            DeluxePager1.RecordCount = recordCount;
            DeluxeGrid1.DataSource   = ds;
            DeluxeGrid1.DataBind();
        }
Пример #2
0
        protected override void OnPreRender(EventArgs e)
        {
            DataSet ds = ObjData.Getlist();

            DeluxeGrid1.DataSource = ds.Tables[0];

            DeluxeGrid1.DataBind();

            base.OnPreRender(e);
        }
        private void InitializePage()
        {
            DataSet ds = ObjData.Getlist();

            int recordCount = ObjData.GetOrdersCount();

            DeluxeGrid1.DataSource   = ds;
            DeluxePager1.RecordCount = recordCount;

            DeluxeGrid1.DataBind();
        }