Databinding to a grid - DateTime problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Duggi

    #1

    Databinding to a grid - DateTime problem

    When I bind a table containing the DateTime field, to a grid, the
    column is showing up, 2008-09-22T12:15:59.

    I would like to format the value as 22-09-2008 12:15:59

    Any ideas how to achieve it??

    Thanks in advance.

    -Cnu
  • Duggi

    #2
    Re: Databinding to a grid - DateTime problem

    On Sep 23, 2:09 pm, Duggi <DuggiSrinivasa ...@gmail.comwr ote:
    When I bind a table containing the DateTime field, to a grid, the
    column is showing up, 2008-09-22T12:15:59.
    >
    I would like to format the value as 22-09-2008  12:15:59
    >
    Any ideas how to achieve it??
    >
    Thanks in advance.
    >
    -Cnu
    does anyone know how to remove T and format DateTime to grid?

    -Cnu

    Comment

    • Marc Gravell

      #3
      Re: Databinding to a grid - DateTime problem

      What grid are you using? WinForms? ASP.NET? WPF? Other?
      What data source are you using? typed classes? DataTable? xml?

      Marc

      Comment

      • Duggi

        #4
        Re: Databinding to a grid - DateTime problem

        On Sep 23, 3:32 pm, Marc Gravell <marc.grav...@g mail.comwrote:
        What grid are you using? WinForms? ASP.NET? WPF? Other?
        What data source are you using? typed classes? DataTable? xml?
        >
        Marc
        WinForm - DevExpress Grid

        DataSource, I specified as one of the object in the project. (an XSD
        file)

        -Cnu

        Comment

        • Marc Gravell

          #5
          Re: Databinding to a grid - DateTime problem

          Then it sounds like it might be a question for DevExpress.

          Given the "T", it sounds like you are binding xml to the gri - is this
          correct?

          Marc

          Comment

          • Duggi

            #6
            Re: Databinding to a grid - DateTime problem

            On Sep 23, 4:01 pm, Marc Gravell <marc.grav...@g mail.comwrote:
            Then it sounds like it might be a question for DevExpress.
            >
            Given the "T", it sounds like you are binding xml to the gri - is this
            correct?
            >
            Marc
            Yes. I am binding XML that comes out of a table to DevExpress Grid.

            -Cnu

            Comment

            • Marc Gravell

              #7
              Re: Databinding to a grid - DateTime problem

              Then you might want to verify the xsd type that the property exposes,
              but *really* this is a question
              for:http://www.devexpress.com/support/center/

              Comment

              • Duggi

                #8
                Re: Databinding to a grid - DateTime problem

                On Sep 23, 4:59 pm, Marc Gravell <marc.grav...@g mail.comwrote:
                Then you might want to verify the xsd type that the property exposes,
                but *really* this is a question
                for:http://www.devexpress.com/support/center/
                Thanks Marc, I will find it with DevExpress support Team.

                -Cnu

                Comment

                Working...