Hello,
I have been trying for days to get data from a mysql table into a dataset and then fill a datagrid. How do i do this?
Code:MySqlConnection myConnection = new MySqlConnection(); myConnection.ConnectionString = "**********"; myConnection.Open(); string mySelectQuery = "SELECT * FROM table"; MySqlCommand myCommand = new MySqlCommand(mySelectQuery, myConnection); data = new dataset(); DataSet1.fill(data);




Reply With Quote