And how to collect the checked items

Asked By Aldo Lin Lin
08-Sep-08 12:56 AM
Earn up to 0 extra points for answering this tough question.

Asp.net vb.net

Can I add check box in radComboBox, if Yes how to add

And how to collect the checked items

  hmm...

Santhosh N replied to Aldo Lin Lin
08-Sep-08 01:03 AM

First of all I am not sure what you are trying to achieve on this and your requirement...

The basic purpose of checkboxes and radiolist are different the former being for selection of any of those and the later one for only one among many...

Hence, this is not possible on the radiocombobox to have checkbox...

  Answer to Get Selected Values From a CheckBoxList in C#

Binny ch replied to Aldo Lin Lin
08-Sep-08 01:07 AM
// Get Values from CheckBoxList
String values = "";
for (int i=0; i< cbl.Items.Count; i++)
{
        if(cbl.Items[i].Selected)
        {
                values += cbl.Items[i].Value + ",";
        }
}
                       
values = values.TrimEnd(',');

  datagrid with checkbox

gnanam gnanam replied to Aldo Lin Lin
08-Sep-08 03:05 AM

checkbox ch;

int count;

for(int i=0;i<dggrid.items.count;i++)

{

 ch = dggrid.items[i].findcontrols("checkItem");

if(ch == checked)

{

  count =count+1;

}

}

respone.write(count);

 

checkItem --->Checkbox id

Create New Account