Adding tooltip for RadioButtonList items

asp.net, c#, data-binding

Solution

The following code will show tooltip on the radio button:

ListItem li=new ListItem("Manish","oopde");
li.Attributes.Add("title","zello");
RadioButtonList1.Items.Add(li);

For databinding you can iterate through each item and add the attributes to it. The databound and databinding event doesn't call for each items because of which we didn't get any other option to implement the same.

Problem

My `RadioButtonList` is bound to the database as follows: ``` SqlDataAdapter adapter = new SqlDataAdapter("SELECT ItemsID,ItemsDescription FROM Items", con); adapter.Fill(subjects); rblUseCases.DataSource = subjects; rblUseCases.DataTextField = "ItemsDescription"; rblUseCases.DataValueField = "ItemsID"; rblUseCases.DataBind(); ``` I need to add a new tooltip to be shown when the user hovers around any radio button. I plan to add the tooltip text as a new column `Tooltip` in the database table `Items`. How can I databind this to the radio button?

Original source