Dim cn As String = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Database genk.mdb;") Dim SQLString As String = "SELECT * FROM Products" Dim DBConn1 As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(cn) Dim DataSet1 As New DataSet() Dim DataAdapter1 As System.Data.OleDb.OleDbDataAdapter = New System.Data.OleDb.OleDbDataAdapter(SQLString, DBConn1) DataAdapter1.Open() DataAdapter1.Fill(DataSet1, "Products") DataGrid_Sort.DataSource = DataSet1.Tables("Products") End Sub
When the user clicks the button the all the data in my Products table is displayed on a datagrid. How can i put the data inside my Products table into an array so i can manipulate my fields to undergo quick sort.
P.S. could i also get tips on how to quick sort my data when the user clicks the sort button