Results 1 to 2 of 2

Thread: [RESOLVED] datagrid column format date

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2008
    Posts
    778

    Resolved [RESOLVED] datagrid column format date

    Hello,
    I got a datagridview that gets filled from the database. One of the columns OSorderDate needs to be formated like this - "dd/MM/yyyy hh:mm:ss" but I don't know how to apply this to the column of a datagrid. The column type is DataGridViewTextBoxColumn.
    Thank you

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: datagrid column format date

    You set the Format property of that column's DefaultCellStyle.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width