13
I set combobox.datasource to a dataview item (so that it binds to a table), When I get return value from combobox.selectedvalue. Error was returned bcos it is of type "system.data.datarowview"
I don't know why commonly its return value as text
The code :
If ldstList.Tables(0).Rows.Count <> 0 Then
With CbStatus
.DataSource = ldstList.Tables(0)
.DisplayMember = "CardStatus"
.ValueMember = "StatusID"
End With
End If
If Integer.Parse(CbStatus.SelectedValue) > 0 Then
GridLoad(Integer.Parse(CbStatus.SelectedValue))
End If