Sorting problem ?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2007
Posts: 3
Reputation: sahoo.satya1984 is an unknown quantity at this point 
Solved Threads: 0
sahoo.satya1984 sahoo.satya1984 is offline Offline
Newbie Poster

Sorting problem ?

 
0
  #1
Feb 15th, 2008
I can sort in gridview,but i've two problem
1)When i click edit button,sorting changed to reverse order.
2)When i go next page through paging,data are not in same order as in previous page.
What can i do ?
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 177
Reputation: Kusno is an unknown quantity at this point 
Solved Threads: 14
Kusno's Avatar
Kusno Kusno is offline Offline
Junior Poster

Re: Sorting problem ?

 
0
  #2
Feb 27th, 2008
Dear Sahoo,
I hope I can help you.

For case no. 2, if you don't mention query to fill data, ASP.Net will retreive data from default ObjectDataSource.selectQuery method.

Protected Sub GVFunding_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GVFunding.PageIndexChanging
Filldata(txtSearch.Text.Trim)
GVFunding.PageIndex = e.NewPageIndex + 1
End Sub
NEVER NEVER NEVER GIVE UP
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC