DataSet ds = new DataSet(); try { MySqlConnection con = new MySqlConnection("Server=localhost;UID=root;Database=db_cignal"); con.Open(); MySqlCommand command = con.CreateCommand(); command.CommandText = "Select * from inventory where Product like @cb "; command.Parameters.Add("@cb", MySqlDbType.VarChar, 20).Value = "%" + cbProductDescription.SelectedItem.ToString(); MySqlDataAdapter da = new MySqlDataAdapter(); da.SelectCommand = command; da.Fill(ds); da.Update(ds); con.Close(); } catch (Exception r) { MessageBox.Show(r.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)