MySqlConnection conn = new MySqlConnection(mysqlstring); conn.Open(); MySqlCommand cmd = conn.CreateCommand(); cmd.CommandText = "SELECT * FROM avg_product"; MySqlDataAdapter adap = new MySqlDataAdapter(cmd); DataSet ds = new DataSet(); adap.Fill(ds); GridView2.DataSource = ds.Tables[0].DefaultView; GridView2.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)