If e.RowIndex >= 0 Then
Dim row As DataGridViewRow
row = Me.DataGridView1.Rows(e.RowIndex)
RadioButton1.Checked = row.Cells("gender").Value.ToString()
RadioButton2.Checked = row.Cells("gender").Value.ToString()
我得到从字符串到类型的错误转换布尔值无效。