We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Sub sortGrid(ByVal colName As String) 'get the dataset from the session item Dim dsCurrent As New DataSet dsCurrent = Session.Item("data") 'create a dataview to manipulate the data Dim dataView As New DataView(dsCurrent.Tables(0)) 'create the sort dataView.Sort = colName & " DESC" GridView1.DataSource = dataView GridView1.DataBind() End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.