May*_*hak 15
试试这样......
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//use this way
e.Row.ToolTip = "My FooBar tooltip";
//or use this way
e.Row.Attributes.Add("title", "My FooBar tooltip");
}
}
Run Code Online (Sandbox Code Playgroud)
这将显示整行的工具提示.如果您需要在特定控件上显示,那么找到该控件并设置Tooltip属性为您自己的标题...
| 归档时间: |
|
| 查看次数: |
20954 次 |
| 最近记录: |