hello guys how can i update datagridview to display the newly added data to the database
here is my sample code for adding data to the database
MySqlCommand cmdAdd = new MySqlCommand("INSERT INTO tblelemdetails (STUD_ID,LNAME,FMNAME,AGE,ADDRESS,BDAY,BPLACE,RELIGION,CITIZEN,CITY,LSCHOOL,LSCHOOLADD,SCHOOLYEAR,GENDER,LEVEL) VALUES('" + Ids.ToString() + "','" + txtLName.Text + "','" + fnamer + "','" + txtAge.Text + "','" + txtHAddress.Text + "','" + bdayer + "','" + txtPOBirth.Text + "','" + txtReligion.Text + "','" + txtCitizen.Text + "','" + txtCity.Text + "','" + txtLSchool.Text + "','" + txtLSchoolAdd.Text + "','" + txtSY.Text + "','" + cmbGender.Text + "','" + cmbYrLvl.Text + "')", db_con.DbConn);
cmdAdd.Transaction = mytrans;
cmdAdd.ExecuteNonQuery();
cmdAdd.Dispose();
mytrans.Commit();
MessageBox.Show("Data Has Been Succesfully Added","Important Note",MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
Clear();
db_con.DbConn.Close();
pls need some help and thanks