building a sort

D

DC Gringo

I'm trying to build a sorting control. The textbook example gives me the
following, but I'm using a DataSet and two tables from a stored procedure
rather than a dataview. How would I modify this to suit?

Private Sub DataGrid1_SortCommand(ByVal source As Object, _
ByVal e As System.Web.UI.WebControls.DataGridSortCommandEventArgs) _
Handles DataGrid1.SortCommand
DataView.Sort = e.SortExpression
DataGrid1.DataBind()
End Sub

_____
DC G
 

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

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top