Hi,
I have two forms:
Form1 will contain datagridview to show all the students info (ie.student_id,first_name,
last_name,
contact_no
)
Form2 will contain the corresponding student_id,first_name,last
_name,cont
act_no(all
TextBox)
I am using VB.Net 2005 Professional Edition and SQL Server 2005 Express Edition.
I have done the first form which displays the students info table in the datagridview.
When the user double-clicks on a row in a datagridview it show the full record(row) in the second form.
Firstly, I need to know how to save the changes made to the record in Form 2 back to the database. This will be done by pressing on the Save button.
Secondly, on the same form, there will be a Delete button which will delete the entire student record.
Finally, in Form 1, there will be an Add button which will prompt a new form which you can fill in a new student's info and save it back into the database.
A sample code would be highly appreciated.
Regards,
Start Free Trial