Design Time Database Error While Assigning Databinding

Posts   
 
    
JRR avatar
JRR
User
Posts: 125
Joined: 07-Dec-2005
# Posted on: 16-Jul-2007 18:57:08   

I know how much frans dislikes working with the VS Designer design time databinding simple_smile

I have had this error show up in the past, and I'm never sure how I got rid of it. I probably recreated the form, or something drastic like that

I am using:

  • May 23 release of llblgen 2.0
  • vs 2005 SP1
  • vb.net
  • DevExpress Controls

Ok, when I select a control, and attempt to databind a property using the designer, Visual Studio gives me an error box with this message:

No parameterless constructor defined for this object.

I have dragged some entityCollections and BindingSources onto my form. I was able to successfully design-time databind everything together a week ago, but now trying to add one more field does not seem to be possible.

I modified the entities only slightly, adding some custom properties, but not modifying the constructor.

No errors are thrown at run-time.

Any ideas?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 17-Jul-2007 11:52:24   

Try to remove the entityCollection and add it again to the form.

JRR avatar
JRR
User
Posts: 125
Joined: 07-Dec-2005
# Posted on: 17-Jul-2007 17:30:45   

Walaa wrote:

Try to remove the entityCollection and add it again to the form.

Yeah... I was hoping the answer wasn't like that.

I have 4 entity collections, and many controls on the form.

Wish me luck that I don't have to remove all of them cry

Actually, I may just leave the design-time error alone, and write this last databinding in by code.

JRR avatar
JRR
User
Posts: 125
Joined: 07-Dec-2005
# Posted on: 17-Jul-2007 18:51:35   

Instead of dismantling my form, I added a line to the designer.vb to create databinding.

Not sure it's a good way to handle this in the future disappointed but my form is practicly done. If anyone else has run into this, and has a better solution - I would love to hear it.