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?
<Button x:Name="btnHelp" ToolTip="For new paragraph : press Enter 
For new line : press Shift+Enter">
<ToolTipService.ShowDuration>15000</ToolTipService.ShowDuration>
</Button>
Set the ToolTipService.ShowDuration property.
You need to use the ToolTipService
and specifically the ShowDuration
attached property.
You should be able to do the following after you set the tooltip:
ToolTipService.ShowDuration(e.Row, 10000)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With