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. datagrid header text

datagrid header text

Scheduled Pinned Locked Moved Visual Basic
help
4 Posts 4 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.
  • P Offline
    P Offline
    Pravin H
    wrote on last edited by
    #1

    I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance

    A D L 3 Replies Last reply
    0
    • P Pravin H

      I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance

      A Offline
      A Offline
      abhinish
      wrote on last edited by
      #2

      try this article if u want to custumize the window form datagrid it also contains the solution of ur problem. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/wnf_CustDataGrid.asp[^] a very good article abhinav gupta

      1 Reply Last reply
      0
      • P Pravin H

        I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance

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

        The best way to do it is to not change the column names in the SELECT statement. Instead of relying on the automatic column creation for you DataGrid, make your own columns. You can control what columns they're bound to in your DataSet and what their HeaderText names are, as well as a slew of other thing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        • P Pravin H

          I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskformattingthedatagridatdesigntime.asp[^]

          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