Morning all.
I have a gridview that uses a dictionary to show tooltips against the header within said gridview.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
Dictionary<String, String> headerTooltips = new Dictionary<String, String>();
headerTooltips["Product ID"] = "product identification code";
headerTooltips["Product Description"] = "description of the product";
{
if (e.Row.RowType == DataControlRowType.Header)
{
foreach (TableCell cell in e.Row.Cells)
{
foreach (System.Web.UI.Control ctl in cell.Controls)
{
if (ctl.GetType().ToString().Contains("DataControlLinkButton"))
{
string headerText = ((LinkButton)ctl).Text;
cell.Attributes.Add("title", headerTooltips[headerText]);
}
}
}
}
}
}
That's fine and working beautifully...super.
However, some of the tooltips take longer than the default 5000ms, does anyone know how I can programmatically extended this display time with the code I am currently using?
Any help gratefully received.