如何在鼠标悬停时使用此网格视图的工具提示。它应该显示数据库中的数据。 [英] How to use tooltip for this gridview on mouseover. It should display data from the database.

查看:54
本文介绍了如何在鼠标悬停时使用此网格视图的工具提示。它应该显示数据库中的数据。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:GridView ID="Gv2EnrolledDueDetails" runat="server" AllowPaging="True" OnRowDataBound="OnRowDataBound"

                    AutoGenerateColumns="False" DataKeyNames="Appln_no" Width="800px" OnPageIndexChanging="Gv2EnrolledDueDetails_SelectedIndexChanged">
                    <Columns>
<asp:BoundField DataField="Can_REGID" HeaderText="Can_REGID" Visible="False"></asp:BoundField>
<asp:BoundField DataField="Enrol_Status_Id" HeaderText="Enrol_Status_Id" Visible="False"></asp:BoundField>
<asp:BoundField DataField="Candidate_id" HeaderText="Candidate REGID" Visible="False"></asp:BoundField>
<asp:BoundField DataField="Appln_no" HeaderText="# Application" SortExpression="Appln_no"></asp:BoundField>
<asp:BoundField DataField="Can_Name" HeaderText="Candidate Name" SortExpression="Can_Name"></asp:BoundField>
<asp:BoundField DataField="CourseName" HeaderText="Course" SortExpression="CourseName" ></asp:BoundField>
<asp:BoundField DataField="StartDate" HeaderText="Start Date" SortExpression="StartDate" DataFormatString="{0:dd-MMM-yyyy}" ></asp:BoundField>
<asp:BoundField DataField="EndDate" HeaderText="End Date" SortExpression="EndDate" DataFormatString="{0:dd-MMM-yyyy}" ></asp:BoundField>
<asp:HyperLinkField DataNavigateUrlFields="Appln_no" DataNavigateUrlFormatString="TRS_Enrollement-Instalment.aspx?Appln_no={0}" Text="Payment" HeaderText="Pay"></asp:HyperLinkField>

推荐答案

参考 - 使用jQuery在Cell MouseOver上显示GridView Row详细信息ASP.Net中的ToolTip插件 [ ^ ]。



如果你想去数据库,那么你必须对Web方法进行jQuery Ajax调用并从中返回数据。
Refer - Display GridView Row details on Cell MouseOver using jQuery ToolTip Plugin in ASP.Net[^].

If you want to go to the database, then you have to do a jQuery Ajax call to a Web Method and return data from that.


这篇关于如何在鼠标悬停时使用此网格视图的工具提示。它应该显示数据库中的数据。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆