C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

sorting in gridview in every pageindex in vb.net


Posted Date: 04 Oct 2008      Posted By: A.raghavender      Member Level: Gold     Points: 1   Responses: 1



sorting in gridview in every pageindex in vb.net
that is if a first page contains 10 records,with in the ten records sorting should occour not from last page,like that in every page index should be happen





Responses

Author: loki    06 Oct 2008Member Level: BronzeRating: 3 out of 53 out of 53 out of 5     Points: 3

Hi,

Add the Event for the grid as shown

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

You can also set the property called EnableSortingAndPagingCallbacks=true to the gridview.

happy coding,
Loki.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : problem related to timer
Previous : For Arathi.....also for other members
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use