Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string constring = " datasource = localhost;port = 3306; username = root; password=root
- MySqlConnection conDataBase = new MySqlConnection(constring);
- MySqlCommand cmdDataBase = new MySqlCommand("select * from database.edata;" conDataBase;
- try {
- MySqlDataAdapter sda = new MySqlDataAdapter();
- sda.SelectCommand = cmdDataBase;
- DataTable dbdataset=new DataTable()
- sda.Fill(dbdataset);
- BindingSource bSource = new BindingSource;
- bSource.DataSource = bdDataset;
- dataGridView1.DataSource = bSource;
- sda.Update(dbdataset);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement