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
2549
UltraGrid: DateTime in MaskInput does not work
posted

Good morning,

I have some problems while trying to display a datetime value in the grid.

I use a list of items (BindingList<items>)  that is bound to the grid.
No problem so far, everything works as expected.

The grid displays the datetime value as date, which seems to be the default behavior.
I read in one of the posts that the following formatting condition can be used to display date and time:

{date} {time}

So far, so good. When I apply this condition to the column the correct mask is shown in the designer:
__.__.____  __:__:__

Unfortunately when I start the application I get the date and time, but without any formatting at all:
30032010092344

Could anybody please be so kind and tell me how to accomplish to display the datetime as mentioned?

Any help is kindly appreciated

best regards

Andy

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Andy,

    I'm a little fuzzy on what the question is. You say you are are getting the correct mask, but then you say you are not getting the correct mask? I assume you mean the mask is not showing up initially? When does it correct itself? In what event are you setting the MaskInput on the column? Ideally, you should be using the InitializeLayout event of the grid for this.

Reply Children