The following code is my Grid View_AA from aspx page.

<asp:TemplateField HeaderText="Period Name" SortExpression="PERIOD_NAME">
<EditItemTemplate>
<asp:TextBox ID="txtGVPeriodName" runat="server" 
Text='<%# Bind("PERIOD_NAME") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblGVPeriodName" runat="server" 
Text='<%# Bind("PERIOD_NAME") %>' Visible="False">
</asp:Label>
<asp:LinkButton ID="lborganize" runat="server" 
OnClick="lborganize_Click" Text='<%# Bind("PERIOD_NAME") %>'>
</asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="400px" />
<ItemStyle HorizontalAlign="Center" Width="400px" />
</asp:TemplateField>
</asp:GridView>

protected void GridView_AA_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Header)
{
LinkButton lb_pname = (LinkButton)(e.Row.Cells[2].Controls[0]);
lb_pname.Text = "Period Nameāļ°";
e.Row.Cells[2].Controls.Add(lb_pname);
}
}
 
The above code is working well in my project. I hope you can get some references from it. Have a nice day!