[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

649 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