Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckBoxList values to Listview Insert Parameters

Status
Not open for further replies.
Here is how I do it, It uses a bit of Linq

//Get items that are checked from a checlistbox and load into a listitem object
List<ListItem> Citems = uxchkCustomers.Items.Cast<ListItem>().Where(n => n.Selected).ToList();

if (Citems.Count != 0)
{
//do something like insert them into the listview
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top