Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. To Change the Header Text of DataBound DataGrid

To Change the Header Text of DataBound DataGrid

Scheduled Pinned Locked Moved Visual Basic
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HemaRawat
    wrote on last edited by
    #1

    Hi. How we can change the header text of the columns which r bounded from the databse AS I donot want to show the the datafield name on the headre text of the columns in datagrid e.g. Dept_Code Instead of this i want to display it as Department Code Hema Chaudhry

    D 1 Reply Last reply
    0
    • H HemaRawat

      Hi. How we can change the header text of the columns which r bounded from the databse AS I donot want to show the the datafield name on the headre text of the columns in datagrid e.g. Dept_Code Instead of this i want to display it as Department Code Hema Chaudhry

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You could do it in your SQL SELECT statement:

      SELECT Dept_Code AS [Department Code] FROM table

      RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      H 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You could do it in your SQL SELECT statement:

        SELECT Dept_Code AS [Department Code] FROM table

        RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        H Offline
        H Offline
        HemaRawat
        wrote on last edited by
        #3

        Yes this can be a very good option Thanks a Bunch Hema Chaudhry

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups