Design time databinding. How to?

Posts   
 
    
zephyrs
User
Posts: 18
Joined: 30-Oct-2004
# Posted on: 11-Dec-2004 17:57:20   

Hi I've seen a few posts about the design time databinding. How exactly are the entities added to the tool box in VS? I can't seem to find any instructions to help and I'd like to give it a go... Thanks Mark

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 11-Dec-2004 18:22:16   

design time databinding works with collections, to setup grids and the like. Entities can't be added to the containers.

Frans Bouma | Lead developer LLBLGen Pro
zephyrs
User
Posts: 18
Joined: 30-Oct-2004
# Posted on: 11-Dec-2004 18:47:25   

Hi Thanks for the reply.

.....then how do I go about adding collections to the toolbox?

Mark

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 11-Dec-2004 18:57:01   

You need a collection for that. So drop a collection on a form, do as if you bind that collection to combo box, that will define the combo box, but at runtime in your code, you bind it to a collection in some entity simple_smile

Frans Bouma | Lead developer LLBLGen Pro
zephyrs
User
Posts: 18
Joined: 30-Oct-2004
# Posted on: 11-Dec-2004 19:19:27   

Its the first bit 'drop a collection on the form' that I don't get. How do I do this?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 12-Dec-2004 11:45:28   

zephyrs wrote:

Its the first bit 'drop a collection on the form' that I don't get. How do I do this?

By compiling your generated code and then click with teh right mousebutton on a toolbox tab and select add/remove items, then browse to your compiled assembly and select the collections you want to add. If you're using adapter, select 'EntityCollection'. This is also in the documentation btw, ('Databinding' section). simple_smile

Frans Bouma | Lead developer LLBLGen Pro
zephyrs
User
Posts: 18
Joined: 30-Oct-2004
# Posted on: 12-Dec-2004 17:00:21   

I've got it working now. Thanks very much for your help.

This feature is excellent - it will make setting up grids much quicker via the Janus designer rather than in code. Nice work!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 12-Dec-2004 17:35:35   

Yeah, I first thought "what's the big deal?" but after I got it working, it's a real timesaver simple_smile It was hard to get it working, but I'm glad it now works simple_smile

Frans Bouma | Lead developer LLBLGen Pro