[Not LLBL related] add a blank line in a binded combobox?

Posts   
 
    
silat
User
Posts: 57
Joined: 24-Mar-2006
# Posted on: 12-Jul-2006 17:18:38   

Hello All,

Could you tell me how do I add a blank row(as first item) in a data binded combo box?

Thanks,

Silat

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 12-Jul-2006 17:53:40   

web or winforms?

Frans Bouma | Lead developer LLBLGen Pro
silat
User
Posts: 57
Joined: 24-Mar-2006
# Posted on: 13-Jul-2006 04:08:39   

Nice! you also reply on the general forom ;-)

In fact, I need to do that BOTH in winform and web.

Cheers,

Silat.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 13-Jul-2006 08:27:59   

web: simply add an <option .. > tag inside the combobox tags with the empty value. In winforms it's very tricky. You then have to add a dummy object to the list of objects to bind.

Frans Bouma | Lead developer LLBLGen Pro