Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
810
How can I change page index by myself?
posted

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.

 

Parents Reply Children
No Data