Hello, I have a collection of entities that need to be displayed in a form. A user must be able to indicate any number of these entities in which they have interest by checking the box, and I'm at a bit of a loss at how to handle this elegantly. I've dealt with a variable number of inputs before, where I used a loop index to update values in a list by implementing a faux property setter accessed by the loop, but that won't work with checkboxes because they are boolean. Here's a quick summary:
I have a table PropertyTypes that has a few records (Condo, Single Family, Land / Lot, etc). In a form I'd present all of these to the user as check boxes, and they could select any number of them indicating their interest: [ x ] Condo [ x ] Single Family [ ] Land / Lot The only way I can think to do this is back that selection by a collection of booleans, and then compare that list to the list of entities from the table assuming that the collection sizes are identical and that the indexes correspond exactly. I don't feel like that is elegant and am wondering if anyone has ideas on a cleaner / simpler way of doing this. Thanks! -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]