in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Datetimepicker formats - 2 questions.

Last post 07-21-2008 11:08 AM by C1_IrinaP. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-14-2008 10:40 AM

    Datetimepicker formats - 2 questions.

     Following on from my earlier post I have another question.  I have a datetimepicker being set via FrameworkElementFactory into a GridView.  It is bound to a class that shows its value as a string.  So for a value of '1/4/1959' it now shows Wed 4/1/1959 and drops down the month of April.  Nearly right.

    How do I get it to show Wed 1/4/1959 for 1st April 1959?

    Also the date part of the string is shown a few picels lower that the day string so the bottom of all the characters is chopped off.  increasing the height of the datetimepicker simply makes my row bigger but the 'combo' doesn't change size at all.

    How do I set the size of the contained 'combo' and make the text all line up corretcly?

    Thanks

    John

    Filed under:
  • 07-19-2008 2:20 PM In reply to

    Re: Datetimepicker formats - 2 questions.

    > Following on from my earlier post I have another question. I have a datetimepicker
    > being set via FrameworkElementFactory into a GridView. It is bound to a class that
    > shows its value as a string. So for a value of '1/4/1959' it now shows Wed 4/1/1959 and
    > drops down the month of April. Nearly right.
    >
    > How do I get it to show Wed 1/4/1959 for 1st April 1959?

    In the current version of control you can't do that without retemplating the control.
    The next maintenance release will contain properties for setting date and time format
    strings.

    > Also the date part of the string is shown a few picels lower that the day string so the
    > bottom of all the characters is chopped off. increasing the height of the
    > datetimepicker simply makes my row bigger but the 'combo' doesn't change size at all.
    >
    > How do I set the size of the contained 'combo' and make the text all line up corretcly?
    Which Windows theme do you use?
  • 07-21-2008 10:23 AM In reply to

    Re: Datetimepicker formats - 2 questions.

    Irina,

    Thanks for the info.

     

    C1_IrinaP:
    In the current version of control you can't do that without retemplating the control.
    The next maintenance release will contain properties for setting date and time format
    strings.

     Is there a projected date for this next release yet?  If it is too long I may have to try re-templating although this sounds like hard work.

     Thanks

     

    John

  • 07-21-2008 11:08 AM In reply to

    Re: Datetimepicker formats - 2 questions.

    > Is there a projected date for this next release yet? If it is too long I may have to
    > try re-templating although this sounds like hard work.

    It's under testing now. Hope it will be available soon.
Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.