Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a BindingCollection object with DataList Control

Status
Not open for further replies.

phoenixrising

Programmer
Apr 25, 2001
1
US
Hi,
I have a data-aware class, that I am trying to 'connect' with a DataList control, via a BindingCollection object. Here's my attempt at it:

Set cc = New clsDataSource
Set bindingColl = New BindingCollection
Set DataList1.RowSource = cc
Set bindingColl.DataSource = cc
bindingColl.Add Text2, "Text", "PATH"
bindingColl.Add DataList1, &quot;ListField&quot;, &quot;PATH&quot; <<<ERROR

During code execution, I get the following error (on the last line in sample above, with &quot;<<<ERROR&quot; next to it):

Run-time error 380 - Invalid Property Value

I KNOW that the ListField Property is a valid property of the DataList control. Can anyone tell me what is going on?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top