Hi,
I have a WebDataGrid that datasource is function(BindGrid), how can I use paging in code behind?
In Visual Studio tool(GridView), I wirte:
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { BindGrid(); } }
protected void gvNewsList_PageIndexChanging(object sender, GridViewPageEventArgs e) { gvNewsList.PageIndex = e.NewPageIndex; BindGrid(); }
But in WebDataGrid, how can I write?
thx.
Hello Su Min,
You can change the current page programatically like this:
WebDataGrid1.Behaviors.Paging.PageIndex = 1;
Please let me know if you have any questions.
Hi Su Min,
I'm just checking if you have any further questions regarding the matter.