Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 RadGrid。有一个名为 Comments 的列,我目前将其作为 Y/N,如果他们将鼠标悬停在 Comments 标题行上,我想添加一个工具提示。有没有一种简单的方法可以做到这一点?
试试下面的代码片段。
protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridHeaderItem) { GridHeaderItem header = (GridHeaderItem)e.Item; header["ColumnUniqueName"].ToolTip = "Custom Text"; } }