.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Asp.Net Gridivew PageIndexchanging problem

Posted By: Vijay     Posted Date: January 21, 2011    Points:2   Category :ASP.Net
Hi friends,

I am entering children details like sr no, child name and age in a gridview. There is a button called ADD NEW in a footer. When I click on the button the new empty row gets added. I have set the allowpaging property to true and called the function on pageindexchanging. But when I go on second page and again come back on first all the data gets vanishes and empty row remains. Here I have set the page size to 5.

Any help would be appreciated

Thanks,
Vijay

Responses
Author: SureshM             
Posted Date: January 21, 2011     Points: 5   

Hi Vijay..

did u use like this in Pageindexchanging event ?


protected void grdList_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grdList.PageIndex = e.NewPageIndex;
bindGrid();//whenever u change the page index, u have to bind the grid.....
}


let me know ur comments...

Author: Vijay             
Posted Date: January 23, 2011     Points: 5   

Hi Suresh,

I have used it but...its not working...

Thanks,
Vijay



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend