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. Date in DataGrid

Date in DataGrid

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminquestion
4 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.
  • N Offline
    N Offline
    netDeveloper
    wrote on last edited by
    #1

    I have a BoundColumn which shows a Date.In the Sql server database i have Null value, but in the datagrid i see 1/1/0001 12:00:00 AM .Do you know what the cause might be? If it has any relevance, the datagrid source for the boundcolumn is a LLBLGen Collection. Thank you.

    _ R 2 Replies Last reply
    0
    • N netDeveloper

      I have a BoundColumn which shows a Date.In the Sql server database i have Null value, but in the datagrid i see 1/1/0001 12:00:00 AM .Do you know what the cause might be? If it has any relevance, the datagrid source for the boundcolumn is a LLBLGen Collection. Thank you.

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      You can convert that into date only and then display it in the datagrid.

      Best Regards, Apurva Kaushal

      N 1 Reply Last reply
      0
      • _ _AK_

        You can convert that into date only and then display it in the datagrid.

        Best Regards, Apurva Kaushal

        N Offline
        N Offline
        netDeveloper
        wrote on last edited by
        #3

        K.I'll do it in ItemDataBound. -- modified at 9:29 Tuesday 19th September, 2006

        1 Reply Last reply
        0
        • N netDeveloper

          I have a BoundColumn which shows a Date.In the Sql server database i have Null value, but in the datagrid i see 1/1/0001 12:00:00 AM .Do you know what the cause might be? If it has any relevance, the datagrid source for the boundcolumn is a LLBLGen Collection. Thank you.

          R Offline
          R Offline
          Ramasubramaniam
          wrote on last edited by
          #4

          You can change the date format while retriving on the query itself. Like conver as Varchar. Ram

          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