MultiSelect


Author
Message
Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Which control should I use to allow user to have multiselect?

Also, how to insert/update only checked records back to DB?

Any sample?

Thank you

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Most of the .NET controls allow you to have checkboxes on each of the rows.  There is a "CheckBoxes" property on the ListView as well as the ListBox and TreeView.  When you set that property, you can test on the Checked state of each of the items in the list. 

As for the records that will be saved to the database, only records that are modified are saved, so if you do not want a record to be saved, you can call RejectChanges or AcceptChanges on the row which will set the row to an Unchanged state, preventing it from being saved to the database.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search