phoenixrising
Programmer
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, "ListField", "PATH" <<<ERROR
During code execution, I get the following error (on the last line in sample above, with "<<<ERROR" 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?
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, "ListField", "PATH" <<<ERROR
During code execution, I get the following error (on the last line in sample above, with "<<<ERROR" 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?