private void InitializePage() { DataSet ds = ObjData.Getlist(); int recordCount = ObjData.GetOrdersCount(); DataGrid1.DataSource = ds; DeluxePager1.RecordCount = recordCount; DataGrid1.DataBind(); }
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(); }
protected override void OnPreRender(EventArgs e) { DataSet ds = ObjData.Getlist(); DeluxeGrid1.DataSource = ds.Tables[0]; DeluxeGrid1.DataBind(); base.OnPreRender(e); }
protected void DataGrid1_PageIndexChanged(object source, DataGridPageChangedEventArgs e) { DataGrid1.CurrentPageIndex = e.NewPageIndex; DataSet ds = ObjData.Getlist(); int recordCount = ObjData.GetOrdersCount(); DataGrid1.DataSource = ds; DeluxePager1.RecordCount = recordCount; DataGrid1.DataBind(); }
protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e) { FormView1.PageIndex = e.NewPageIndex; DataSet ds = ObjData.Getlist(); int recordCount = ObjData.GetOrdersCount(); DeluxePager1.RecordCount = recordCount; FormView1.DataSource = ds; FormView1.DataBind(); }