doesn't know method Databind()

Wirloff

Member
Joined
Mar 2, 2005
Messages
19
Location
Belgium
Programming Experience
1-3
Hi,

I have to fill up a combobox with a list of clients from a database. I have managed to do this by directly creating a oledbconnection, dataAdapter,dataset...and then accessing the dataset from the combobox

But I would like to do it with a method like "FillClients", where FillClients then uses a general ClientManagement Class. In my course from school it's something like:

private sub FillClients()
theClients = new ClientManagement
dim oDr as OledbDataReader
try
odr=theClients.getClients
ddlClients.datasource = odr
ddlClients.datatextfield = "Name"
ddlClients.Datavaluefield = "ClientID"
ddlclients.DATABIND() ! ! !
odr.close()
catch......

=> Visual Studio.net doesn't seem to know the word DATABIND while programming :s

It was a ASP course, but I think that this has nothing to do with it, and databind is a correct vb.net method (the help file knows it) ..:s. Am i wrong?

Anyone who can help me??
 
Back
Top