jamey8420 2 Newbie Poster

I have created a gridview that is populated from a SQL table. The gridview does not autogenerate the fields; all are explicitly defined.

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="Hours" style="margin-left: 0px" AllowSorting="true">
        <Columns>
            <asp:TemplateField HeaderText="Send Email">
                <ItemTemplate>
                    <asp:CheckBox ID="chkEmail" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="tkinit" HeaderText="Initials" 
                SortExpression="tkinit" />
            <asp:BoundField DataField="tklast_first" HeaderText="Name" 
                SortExpression="tklast_first" />

Is there a way to bind the HeaderText (example: Initials) to an actual field that fills the gridview (example: tklast_first)? From the research I have done online I haven't been able to find anything concrete either way. Thanks so much in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.