当用户悬停在 GridView 中某个列的列标题上时,例如:列标题年份,当我悬停在“年份”上时,应该看到该年份意义的解释,“这是学生入读大学的年份等。”
以下是我的 ascx 代码:
以下是我的 ascx 代码:
<asp:GridView ID="grdView" runat="server" Width="900px" AutoGenerateColumns="False"
AllowPaging="true" AllowSorting="true" CellSpacing="0" CellPadding="5" PageSize="20"
OnRowDataBound="grdView_RowDataBound">
<Columns>
<asp:TemplateField HeaderText="ID Number" ItemStyle-Width="90px" >
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("ID")%'></asp:Label>
</ItemTemplate>
</asp:TemplateField><asp:BoundField DataField="StudentName" HeaderText="StudentName"> </asp:BoundField>
请告诉我如何在我的网格视图的列标题上悬停文本或工具提示。
谢谢,