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.
Hi Nokolay,
Thank you. But my problem seems like how to refresh webdatagrid.
I have a new post (http://es.infragistics.com/community/forums/p/74785/378010.aspx#378010).
Hi Su Min,
I'm just checking if you have any further questions regarding the matter.
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.