Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
Default date format in grid cells
posted

Hi,
Until today I thought that the default formatting of dates in the grid was the same
as setting the format property to "d" (shortdate).

By default the formatting seems to follow my regional settings (usually I just
change the language/country settings), but when  selecting "Customize..." and
then setting the date format to for instance dd-MMM-yy it is not showing the dates in this format
(should be 11-Sep-09, but it shows 11-09-09).

Of course I can set the format expliciltly in these columns to "d"
(UltraGrid1.DisplayLayout.Bands(0).Columns(0).Format = "d")
but I would prefer not to...

is this a bug, feature or am I misunderstanding something?

(I'm using version 8.3.20083.2082) 

Regards
Tomas

 

 

Parents
  • 469350
    Offline posted

    Hi Tomas,

    You lost me somewhere in the middle paragraph here.

    tomasedstrom said:
    but when  selecting "Customize..." and
    then setting the date format to for instance dd-MMM-yy it is not showing the dates in this format
    (should be 11-Sep-09, but it shows 11-09-09).

    What "Customize..." are you referring to? Are you talking about the system regional settings?

    The date cells use the system short date setting whenever possible, I think. But the DateTimeEditor cannot handle text like "11-Sep-09", so it probably falls back to some default when it encounters something like that.

    My guess is that you probably have to set the Format on all of your date columns to "d", but it's not entirely clear to me from your post what exactly you want.

Reply Children