I have a form that adds information from the textbox and checkbox to the datagridview. The datagridview has 2 columns First Name and Membership status.
I want the application to checkmark the membership checkbox if the selected row has the name member in that particular row.
So far I got this which displays the first name in the text box, but does not check mark the checkbox if the row contains a member.
If e.RowIndex >= 0 Then
Dim row As DataGridViewRow
row = Me.DataGridView1.Rows(e.RowIndex)
FirstNametxt.Text = row.Cells("Column1").Value.ToString
End If
Aucun commentaire:
Enregistrer un commentaire