在GRIDVIEW里,如何把鼠标放在一行上,鼠标旁边的小字显示的是数据库中的内容?
比如,一个TABLE:
ID NAME DESC
1 BOOK SALE BOOK
2 PC SALE PC
3 CPU SALE CPU
把这个表用GRIDVIEW显示出来,用BOUNDFIELD设定为只显示ID和NAME,
当我把鼠标移动到BOOK上,鼠标边上就出来一行小字显示SALE BOOK,移动到PC上,就显示SALE PC?谢谢!!
------解决方案-------------------- <asp:GridView ID= "GridView1 " AutoGenerateColumns= "false " runat= "server ">
<Columns>
<asp:BoundField DataField= "ID " HeaderText= "ID " />
<asp:TemplateField>
<HeaderTemplate> Name </HeaderTemplate>
<ItemTemplate>
<asp:Label ID= "lbName " runat= "server " Text= ' <%# Eval( "NAME ") %> ' ToolTip= ' <%# Eval( "DESC ") %> '> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>