“组合框”的SelectedValue返回system.data.datarowview

时间:2017-05-30 14:56:44

标签: vb.net

大家好我在填充组合框时遇到问题,组合框的值取决于另一个组合框的选定值

选定的value.tostring方法返回system.data.datarowview

图片: enter image description here

1 个答案:

答案 0 :(得分:0)

试试吧

Private Sub XOLVE_cboFaculty_SelectedIndexChanged(sender As Object, e As EventArgs) Handles XOLVE_cboFaculty.SelectedIndexChanged
    If sender.SelectedItem.Length > 0 Then
        MsgBox(sender.SelectedItem.Length)
    End If
End Sub