Problem Populating a List Box

L

Lee Trotter

I am trying to populate a list box from a dataset. There are two fields in
the dataset and 5 rows. When I leave the .datatextfield and .datavaluefield
blank I get 5 rows of 'System.Data.DataRowView'

When I fill in those arguments with the field namesI get
'System.Data.DataRowView' does not contain <fieldname>

Here is the code I am using

objDS2 = cData.GetProjectStatus

cboFilter.DataSource = objDS2

cboFilter.DataTextField = ("tblProjectStatus.fldProjectStatusDescription")

cboFilter.DataValueField = ("tblProjectStatus.fldProjectStatusID")

cboFilter.DataBind()



Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,036
Latest member
FerdinandP

Latest Threads

Top