How to create a ToopTip in gridview
Its very simple to create a tooltip in GridView
First,open the Default.aspx source page where we insert the gridview
Next,Just copy the following code from which you would like to display the tooltip
That's it....
First,open the Default.aspx source page where we insert the gridview
Next,Just copy the following code from which you would like to display the tooltip
ToolTip='<%# Bind("Desgination") %>'
See the full code<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="5" DataKeyNames="EmpID" ForeColor="#333333" GridLines="None" CellSpacing="5" >
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:TemplateField HeaderText="EmpName">
<ItemTemplate>
<asp:Label ID="lbl_empname" ToolTip='<%# Bind("Desgination") %>' runat="server" Text='<%# Bind("EmpName") %>'>>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txt_empname" runat="server" Text='<%# Bind("EmpName") %>'>>
</asp:TextBox></EditItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
That's it....
Labels: .Net Tutorials, Aspnet, C#, CSharp, Gridview, Tanisha, WebConcepts
3 Comments:
Nice Tip...
Thanks For Sharing..........
Nice Tip...
Post a Comment
Subscribe to Post Comments [Atom]
<< Home