Hi everyone,
I'm a n00b on VB.net programming and now I stumbled upon a problem I
can't solve, even after browsing the net for hours..
I have a dataview witg 4 columns; 2 string columns and 2 integer
columns
I want to use the RowFilter to get the 'records' where one of the
integer columns holds a certain integer and use that dataview as
datasource for my listbox
This gives all sorts of error...
I get errors like option strict on disallows implicit
coversion from string to double
Isn't it possible to use integers in a rowfilter?
I can do it otherwise by looping through the dataview and where-ever
the value in the specific column matches my parameter, I can add an
Item to the listbox?
But even here I have a question; Is it possible to add besides a
displaymember also a value that isn't shown but can be called by
"SelectedValue"?
I really hope you guys can help me!!
Here's the code from my dataview and filter
dvaanw2.RowFilter = "activiteitID =
" + paramactid
lstActAanwezigen.DataSource = dvaanw2
lstActAanwezigen.DisplayMember = "LidNaam"
lstActAanwezigen.ValueMember =
"usrID"
ps My Apologies for any mistakes against the english language, but I'm
from Belgium :-)
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*