Question Read a datarow

s0b

New member
Joined
Feb 15, 2009
Messages
3
Programming Experience
Beginner
I have this code:

VB.NET:
Dim DataRow As DataRow() = datatable.Select("name like '%jon%'")

How can i add the results to a listbox?

Thanks
 
What happens if you:

VB.NET:
'dont call your variable "DataRow". never ever name variables as types, 
'especially a different type than what they are!
Dim [B]rowArray [/B]As DataRow() = datatable.Select("name like '%jon%'")
listbox.DataSource = [B]rowArray[/B]
listbox.DisplayMember = "name";
 

Latest posts

Back
Top