I have one GridView, in its RowDataBound Event, I am assigning ToolTip as below:
protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
if (gv.HeaderRow != null && e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.ToolTip = "Remarks: " + ((Label)e.Row.FindControl("lblRemarks")).Text;
}
}
catch (Exception ex)
{
BussinessLayer.RIBOException.Instance.HandleMe(this, ex);
}
}
Here, I want to extend the display time of the ToolTip. How to do this?
You need to use the
ToolTipService
and specifically theShowDuration
attached property.You should be able to do the following after you set the tooltip:
Set the ToolTipService.ShowDuration property.
This works, gives spacing and other formatting options. The above accepted option did not work
with the class of (in between < style> and < /style>)