tooltips added to a dynamically built checkboxlist' items

D

Dan

I loop through a list of systemVO objects and build a
checkboxlist by adding ListItems to it. I would also like
to add a tooltip to each listitem. How can I do this?

I have this code:


// for each systemVO

cbl = (CheckBoxList)page.FindControl(idname);

if (cbl != null)
{
// If checkboxlist doesn't have this systemVO in it,
// add it
//
if (cbl.Items.FindByValue(
Convert.ToString(systemVO.systemName)) == null)
{
listItem = new ListItem(systemVO.systemName,
Convert.ToString(systemVO.systemName));

if (systemVO.isChecked)
listItem.Selected = true;

cbl.Items.Add(listItem);
}
}

// end foreach
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top