building a sort

Discussion in 'ASP .Net' started by DC Gringo, Feb 26, 2004.

  1. DC Gringo

    DC Gringo Guest

    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
     
    DC Gringo, Feb 26, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nobody
    Replies:
    0
    Views:
    565
    nobody
    Jun 1, 2004
  2. JerryJ
    Replies:
    11
    Views:
    1,428
    Dave Moore
    Apr 28, 2004
  3. John Black
    Replies:
    6
    Views:
    2,110
    John Harrison
    May 28, 2004
  4. Midex
    Replies:
    24
    Views:
    969
  5. Navin
    Replies:
    1
    Views:
    762
    Ken Schaefer
    Sep 9, 2003
Loading...

Share This Page