Databinding an EntityCollection to a Combobox

Posts   
 
    
firestar
User
Posts: 10
Joined: 22-Aug-2006
# Posted on: 29-Dec-2008 17:44:40   

Hi,

What would the best way to bind a collection to a combobox. I would like to use two properties of the entity to be displayed in the combo, normally i would override the ToString method.

If there's another way, what would this one be.

Otherwise what would the best way (place) be to override the ToString? If i regenerate the DAL i will lose all my (added) functionality.

Best Regards, Martin

Im using llbl 2.6, self servicing.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 30-Dec-2008 01:56:58   

The best way is to extend your entity writing a custom property. Then you can bind that property on your combo. See this: http://llblgen.com/TinyForum/Messages.aspx?ThreadID=14782

David Elizondo | LLBLGen Support Team