Reputation: 1 Apprentice
- Active Posts:
- 18 (0.08 per day)
- 01-October 12
- Profile Views:
- Last Active:
- Mar 08 2013 07:35 PM
- Dream Kudos:
Posts I've Made
Posted 2 Mar 2013Oh I am sorry that works but my problem is frmRecords is an MDIChild of frmMainForm. In frmMainForm there's a button that when clicked it will load the frmUpdateStudent.Thank you so much.
Posted 2 Mar 2013Thanks for your reply but that doesn't work.
Posted 2 Mar 2013I already did that but it didnt work. The datagridview is on form-frmRecords and the combobox is on another form which is frmUpdateStudent. What I want is to load the first column of Datagridview to Combobox.
Posted 28 Feb 2013That or you can -2 instead of -1 from your rows.count if you need to leave the option for users to add rows.
so where you have:
Dim a As Integer = DataGridView1.Rows.Count - 1
change it to
Dim a As Integer = DataGridView1.Rows.Count - 2
Thank you! This solved my problem.
Posted 28 Feb 2013Yes, the last row of Datagridview is blank.Here's the image.
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
raelkun00 hasn't added any friends yet.