[求助]把access表中值传到radiobutton里
我用的access数据库,做了个性别的radiobutton,想要在datagrid 的click中把表的值在radiobutton中也体现出来
Dim index As Integer = DataGrid1.CurrentRowIndex()
Dim name As String = DataGrid1.Item(index, 0)
Dim dt As DataTable = DataGrid1.DataSource
Dim rows As DataRow() = dt.Select("姓名='" & name & "'")
row = rows(0)
With row
........
If .Item("性别") = "男" Then
RadioButton1.Checked = True
Else
RadioButton2.Checked = True
用了这个进行判断,但是没有效果大家指教下