Multi select control for ASP.NET

Posted on 2008-06-10
Medium Priority
Last Modified: 2012-05-05
Is there an available control for ASP.NET that has features for multi select?
I passing data to an aspx form and I would liek to see a control with checkboxes so I can multiselect on the records or data. thanks
Question by:zachvaldez
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 15

Expert Comment

ID: 21755000
There are a couple in the default asp.net control set:

The Listview control allows you to select multiple items by shift-clicking and ctrl-clicking them.
The CheckboxList allows you to select multiple items by checking each one

Author Comment

ID: 21756396
Can you show me an example how to do a checklistbox?
I have a select statement- Select ID,Last,First,Address,Cit,State,Zip and it returns 20 items/records.
Id like to put a multiple checkbox so I can mass-process it. thanks
LVL 15

Expert Comment

ID: 21764067
here is an article on using the checklistbox

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

ID: 21765655
Thanks , I check the link and there is not much about checklistbox. I think the Gridview is a better alternative as I tried to explore its features but I m not yet fully understanding of Gridview's ability to provide an array of checlboxes  to match the number of records coming from a dataset or query.
Are you familiar with Gridview and how can it be implemented here?
LVL 15

Accepted Solution

Solar_Flare earned 900 total points
ID: 21766076
sure you can use a gridview with a checkbox column, that would make it easier to have multiple columns as per your select statement, but you wont be able to get a collection of checked items without looping through all the rows and seeing if the box is checked.

just design your gridview in the designer and then in the code behind check if the boxes are checked.

pseudocode to give the idea of looping through the rows

for each row in gridview.rows
      //get the cell value for your checkbox column for this row
      bool isChecked = row.cells[checkboxColumnIndex]

      if (isChecked = true) then do whatever it is that you do with checked rows



Author Comment

ID: 21783746
I work with VB.NET. thanks anyways

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question