I have implemented a Grid View with a "TemplateField" that includes properties for Header Text and SortExpression set to true.
Upon inspecting the browser, I noticed that it generates an anchor element with some JavaScript.
How can I add a title tag to this anchor through code? My goal is to display a title attribute like "Click to Sort".
Unfortunately, I have not come across any property to achieve this. Is there a way to accomplish this using JavaScript or C#?
Below is the snippet of my code:
<asp:TemplateField HeaderText="Username" SortExpression="Username">
<EditItemTemplate>
<asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>