Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You can sort the table in the dataset by using the DataViewThe ADO.NET DataSet contains DataTableCollection and their DataRelationCollection . It represents a collection of data retrieved from the Data Source.
Public Class Form6
Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dgv As New DataGridView
Me.Controls.Add(dgv)
Dim ds As New DataSet
ds.Tables.Add("Table1")
ds.Tables(0).Columns.Add("Col1", System.Type.GetType("System.Int32"))
ds.Tables(0).Rows.Add(New Object() {24})
ds.Tables(0).Rows.Add(New Object() {1})
ds.Tables(0).Rows.Add(New Object() {32})
ds.Tables(0).Rows.Add(New Object() {-5})
ds.Tables(0).DefaultView.Sort = "Col1"
dgv.DataSource = ds.Tables(0)
End Sub
End Class