如何从数据库中检索单选按钮值

时间:2017-06-29 18:03:19

标签: mysql vb.net

 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()

我得到从字符串到类型的错误转换布尔值无效。

0 个答案:

没有答案
相关问题