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. how to display date in gridview header

how to display date in gridview header

Scheduled Pinned Locked Moved ASP.NET
questiontutorial
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.
  • R Offline
    R Offline
    rahul net11
    wrote on last edited by
    #1

    Hello All, I want to display dates in gridview header for eg: If the week start on 12 (Sunday) then i want to display all the week dates in its header as follows. S(12) M(13) T(14) W(15) T(16) F(17) S18 how can i do this? Thanks Rahul

    People Laugh on me Because i am Different but i Laugh on them Because they all are same.

    A W 2 Replies Last reply
    0
    • R rahul net11

      Hello All, I want to display dates in gridview header for eg: If the week start on 12 (Sunday) then i want to display all the week dates in its header as follows. S(12) M(13) T(14) W(15) T(16) F(17) S18 how can i do this? Thanks Rahul

      People Laugh on me Because i am Different but i Laugh on them Because they all are same.

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

      I can't see what your problem is, if you have a start date to use then just add 1 to it to get the next date - simple with the datetime class.

      Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

      1 Reply Last reply
      0
      • R rahul net11

        Hello All, I want to display dates in gridview header for eg: If the week start on 12 (Sunday) then i want to display all the week dates in its header as follows. S(12) M(13) T(14) W(15) T(16) F(17) S18 how can i do this? Thanks Rahul

        People Laugh on me Because i am Different but i Laugh on them Because they all are same.

        W Offline
        W Offline
        wasifahmad
        wrote on last edited by
        #3

        If you have a data table and you are binding your grid with datatable then gridview header caption will be made by datatable.Columns(0).ColumnName property. Whatever you will assign in ColumnName property of column will become grid view header caption. Let me know this solves your issue or not? Regards, Wasif Ahmad

        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