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


Top 5 Contributors of the Month
Steve Jackman
Imran Ghani
Santhakumar Munuswamy

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

Dynamic Gridview Paging

Posted By: venu     Posted Date: July 18, 2011    Points:5   Category :ASP.Net
HI!

Friends i came with an issue of dynamic gridview paging.Actually i am creating Gridview dynamically in vb.net and i have added the gvwDetails(This is my Grid view name) gvwDetails_PageIndexChanging event.But after loading the page when i clicked first time on page numbers it is not working, but if i clicked again on the page numbers then it is going to the certain page .Can any one give the sol for this


Regards
-----
venu
http://venu-moguram.blogspot.com/

Responses
Author: venu             
Posted Date: July 18, 2011     Points: 20   

Hi Friends!

I got the solution.

Regards
------------
venu
http://venu-moguram.blogspot.com

Thanks & Regards
-----------------
Venu
Dotnet Programmer
Author: RAJ             
Posted Date: July 23, 2011     Points: 20   

hi,
you should handled the gridview1_pageindexichanging event of the gridview
just go to events of the gridview control then double click on the pageindexchaging event

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
bind();

}
public void bind()
{
here you have to bind the data to the gridview
}


Regards
--------
Raju


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