【发布时间】:2012-11-08 21:23:13
【问题描述】:
当用户将鼠标悬停在 gridview 中列的列标题上时,例如:列标题 Year,当我将鼠标悬停在 Year 上时,我应该会看到该年的含义解释“这是这一年当学生加入大学等”。
下面是我的 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>
请告诉我如何将鼠标悬停在我的 gridview 列标题上的文本或工具提示上。 谢谢,
【问题讨论】: