This Code segment explains, How to show tooltip text in gridview row on mouseover from Code behind
C# Code
protected void GridView_RowDataBound(Object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType e == DataControlRowType.DataRow)
{
//ShowToolTip
e.Row.ToolTip = "This text needs to shown on mouseover of the row!";
}
}
VB.NET
protected sub GridView_RowDataBound(ByVal sender As Object, e as GridViewRowEventArg)
if e.Row.RowType e = DataControlRowType.DataRow then
'ShowToolTip
e.Row.ToolTip = "This text needs to shown on mouseover of the row!";
End if
End Sub
No comments:
Post a Comment