I have one dropdown box inside the item template. As per of my requirement I need to update the tooltip field of drop down in aspx.cs page.
I use the following code:
<asp:TemplateField HeaderStyle-CssClass="grid-label-small" HeaderText="*State">
<ItemTemplate>
<asp:DropDownList ID="ddlDefState" Width="110px" runat="server" ToolTip="Select State">
</asp:DropDownList>
</ItemTemplate>
<HeaderStyle CssClass="grid-label-small" />
</asp:TemplateField>`.
Thank you…
Hi you can find the Item template control using this assuming you are binding in RowDataBound event. Add OnRowDataBound event to GridView like this,
Optionally, you may also be able to bind to tooltip from asp:GridView markup in this way,
Hope this helps. Thanks