I haven't got that code anymore, but this is one of the pieces of code I've got to fill a grid for me...The connection is done elsewhere in the program.Code:Private Sub Fill_Products_Grid() Dim oDataAdapter As MySqlDataAdapter oDataAdapter = New MySqlDataAdapter("SELECT * FROM products;", oConn) If oDataSet.Tables.Contains("products") Then oDataSet.Tables("products").Clear() oDataAdapter.Fill(oDataSet, "products") grdProducts.DataSource = oDataSet.Tables("products") End Sub
Thanks for your help anyways.




Reply With Quote