BiDirectional Sorting

S

Sean

Hi,

I have a datagrid, which gets populated using a Stored Procedure

I am using the standard sort comman
Sub dg_SortCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridSortCommandEventArgs) Handles dgPriceList.SortComman
Tr
BindData(e.SortExpression
Catch ex As Exceptio
lberror.Text = ex.Message & "<br>" & ex.Source & "<br>" & ex.StackTrac
End Tr
End Su

The regular sort works perfectly, is there a way i can get to do a bi-directional sor

I did go thru' the list and there was a link (http://www.v4cnet.com/) and also an snippet of code, but it was not able to recognize the e.sortexpression.tostring() + "Desc

if(SortExpression==e.SortExpression.ToString()) //Change the sort order to DES

SortExpression = e.SortExpression.ToString() +" DESC"

else //Change the sort order to AS

SortExpression = e.SortExpression.ToString()

tr

//Bind the Grid Dat
BindGridData()

catch(Exception ex

throw ex


So, what i would like to know, if there is someway, i could get a bi-directional sort

Thank yo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top