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. Web Development
  3. ASP.NET
  4. heading of the datagrid

heading of the datagrid

Scheduled Pinned Locked Moved ASP.NET
csshelp
3 Posts 3 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.
  • M Offline
    M Offline
    MissionSuccess
    wrote on last edited by
    #1

    hai this is ajay. i have a datagrid.i want to give a heading to this datagrid.is ther any attribute of datagrid which can achieve it.i have used a panel just above the grid which acts as a heading for the grid but its size is rigid,it should be in accordance with the size of grid,so that it comes in the center and look like a heading. plz resolve my problem.

    N P 2 Replies Last reply
    0
    • M MissionSuccess

      hai this is ajay. i have a datagrid.i want to give a heading to this datagrid.is ther any attribute of datagrid which can achieve it.i have used a panel just above the grid which acts as a heading for the grid but its size is rigid,it should be in accordance with the size of grid,so that it comes in the center and look like a heading. plz resolve my problem.

      N Offline
      N Offline
      nikeshkumar
      wrote on last edited by
      #2

      hi ajay this is nikesh.you can use html table of 2*1.Put ur datadrid in 2nd row and right ur heading in first row and set the 2 property of that table . first one align=center second one valign=center. i think it will work fine Nikesh Sahu nikesh

      1 Reply Last reply
      0
      • M MissionSuccess

        hai this is ajay. i have a datagrid.i want to give a heading to this datagrid.is ther any attribute of datagrid which can achieve it.i have used a panel just above the grid which acts as a heading for the grid but its size is rigid,it should be in accordance with the size of grid,so that it comes in the center and look like a heading. plz resolve my problem.

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        Of right click on the datagrid, go to property builder and set the header text for the columns...;P

        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