Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String^ constring = L"datasource=localhost;port=3306;username=root;password=abed1989*;Persist Security Info=True;database=studentsgradesystem;Convert Zero Datetime=True";
- MySqlConnection^ conDataBase = gcnew MySqlConnection(constring);
- MySqlDataAdapter^sda = gcnew MySqlDataAdapter("SELECT * FROM `studentsgradesystem`.`personal_information`", conDataBase);
- DataTable^dt = gcnew DataTable();
- sda->Fill(dt);
- bindingSource1->DataSource = dt;
- dataGridView1->DataSource = bindingSource1;
Add Comment
Please, Sign In to add comment