Display Tool tip in asp.net grid view control
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string ToolTip = "Your ToolTip here";
for (int col = 0; col < e.Row.Cells.Count; col++)
{
e.Row.Cells[col].Attributes.Add("title", ToolTip);
}
}
}
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string ToolTip = "Your ToolTip here";
for (int col = 0; col < e.Row.Cells.Count; col++)
{
e.Row.Cells[col].Attributes.Add("title", ToolTip);
}
}
}
No comments:
Post a Comment