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. datagrid problem anybody help me!!!

datagrid problem anybody help me!!!

Scheduled Pinned Locked Moved ASP.NET
helpquestiondatabase
4 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.
  • Y Offline
    Y Offline
    yangchengmin
    wrote on last edited by
    #1

    hi.. i have a question,the data in database(MS-SQLSERVER) is '2003-7-7 17:45:00' but when the date value display in the datagrid,it become '2003-7-7',the time part lost! so,what can i do if i want to the time part also appear in the datagrid? Thank you I try my best!

    M Y 2 Replies Last reply
    0
    • Y yangchengmin

      hi.. i have a question,the data in database(MS-SQLSERVER) is '2003-7-7 17:45:00' but when the date value display in the datagrid,it become '2003-7-7',the time part lost! so,what can i do if i want to the time part also appear in the datagrid? Thank you I try my best!

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      If it is AutoGenerateColumn you xan set its format in ItemDataBound event , otherwise in the propoerty builder for your datagrid for Bound Column there is a textbox which you can set format of your field. Mazy "Man is different from animals in that he speculates, a high risk activity." - Edward Hoagland

      1 Reply Last reply
      0
      • Y yangchengmin

        hi.. i have a question,the data in database(MS-SQLSERVER) is '2003-7-7 17:45:00' but when the date value display in the datagrid,it become '2003-7-7',the time part lost! so,what can i do if i want to the time part also appear in the datagrid? Thank you I try my best!

        Y Offline
        Y Offline
        yangchengmin
        wrote on last edited by
        #3

        but it's webform program I try my best!

        M 1 Reply Last reply
        0
        • Y yangchengmin

          but it's webform program I try my best!

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          yangchengmin wrote: but it's webform program Of course, what do you mean by that? Mazy "Man is different from animals in that he speculates, a high risk activity." - Edward Hoagland

          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