Managing grid view index changed event in asp
Posted Date Unknown 0 Comment


Grid view is an Built in Control to display data in a tabular form.If we enabled Paging we have to handle page index changed event in code behind .


If you allowed paging for grid view  in and if some changes happened to the items then we have to tell the system to make necessary changes . here is the code.

 protected void Grd_CategoryList_PageIndexChanging(object sender, GridViewPageEventArgs e)
        Grd_CategoryList.PageIndex = e.NewPageIndex; //   Grd_CategoryList - Id of the GridView
          Fill_Category_GridList();  // Calling bind grid view manual function

See All Responses Below...
Message Rating
Posted on:
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site.