Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6991671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:32:01+00:00 2026-05-27T19:32:01+00:00

In ASP.NET usign C#, .NET3.5 F/W Hi, I’ve a Gridview with template columns containing

  • 0

In ASP.NET usign C#, .NET3.5 F/W

Hi,

I’ve a Gridview with template columns containing textbox and Label controls.

By code through some queries and stored procedures i got some data to a datatable. Now i want to pass this datatable column field or names to the Gridview Label controls.

How can i set the datatable column header names to gridview label control of Header Template?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:32:02+00:00Added an answer on May 27, 2026 at 7:32 pm

    It’s called Binding here is link

    <asp:TemplateColumn>
             <ItemTemplate HeaderText="PersonId">
                    <asp:Label id=Label1 runat="server"  
                       Text='<%# Eval("NameOfColumnt") %>'>
                    </asp:Label>
       </ItemTemplate>   
    </asp:TemplateColumn>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.NET using C#; .net3.5 I want to set some value for this label lblSkill1
Using asp.net 3.5 Gridview control, visual studio 2008. I have played with all the
I am using ASP.NET 3.5 with iTextSharp and I have the following code: var
I'm using ASP.NET 3.5. I've noticed some rubbishness in terms of the output for
I'm doing some research on security and sitemaps in ASP.net and am unfortunately running
The Problem When using asp.net server controls id attributes such as the following are
Currently I am designing a website using asp.net 3.5, devexpress controls, SQL server. There
I'm using .NET 3.5 SP1 in ASP.NET MVC application. While using ObjectContext with Http
Using ASP.NET 3.5 and jQuery UI. When a user clicks the Search button, a
I am using ASP.NET 3.5 with JQuery, JS files, CSS files and lots of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.