jvcoach23
Centurion
I've done combo boxes before.. but can't get this one wired up.
it's giving me the "Cast from type 'DataRowView' to type 'Integer' is not valid."
The data coming backup from the function is
intTblPMCompanyId vcCompanyName
1 Home
2 Test1
3 Test
the error comes when i hit the .valuemember. the intTblPMCompanyId row is an integer datatype from Sql server
I'm brining back a dataset from the function.
Hope that is enough to get around this. I'm using the same methods elsewhere in my code and it seems to be working fine.
Code:
Try
With Me.cbCompany
.DataSource = wsPerfmon.spPMListing_Company.Tables(0).DefaultView
.DisplayMember = "vcCompanyName"
.ValueMember = "intTblPMCompanyId"
End With
Catch ex As Exception
Throw ex
End Try
it's giving me the "Cast from type 'DataRowView' to type 'Integer' is not valid."
The data coming backup from the function is
intTblPMCompanyId vcCompanyName
1 Home
2 Test1
3 Test
the error comes when i hit the .valuemember. the intTblPMCompanyId row is an integer datatype from Sql server
I'm brining back a dataset from the function.
Hope that is enough to get around this. I'm using the same methods elsewhere in my code and it seems to be working fine.