in

C1 Community

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

After editing a column, the grid swaps day with month and vice-versa

Last post 05-05-2008 12:35 PM by andersonty. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-30-2008 5:02 PM

    After editing a column, the grid swaps day with month and vice-versa

    Hello,

     I'm just a making a data grid with some informations about patients. One of the columns shows an date edited by the user (it doesnt have a data type, just with the format "dd/MM/yyyy HH:mm").

     
    After editing this column, the grid swaps day and month only when it is possible. Example:

    If the date is 04/03/2008, after the event "ValidadeEdit()" and before the "AfterEdit()" event, the cell value changes to 03/04/2008. But, if the swaps generate an invalid date, it doesnt do the change, like, if the date is 30/03/2008, it remains 30/03/2008

    Any tips?

     PS: I checked the regional settings from the Windows XP and it's in the format dd/MM/yyyy


    Thx!

     

  • 05-01-2008 11:17 AM In reply to

    Re: After editing a column, the grid swaps day with month and vice-versa

    Hi,
     
    Unfortunately, I was not able to reproduce the said behavior in C1FlexGrid. I have attached a sample application showing the correct behavior.
    I would request you to take a look at it and let me know if this helps.
     
    If the issue still persists then please provide me with a sample application and the build number of C1FlexGrid you are using.
     
    Have a nice day.
     
    Regards,
    John Adams
     
    <andersonty> wrote in message news:204463@10.0.1.98...

    Hello,

     I'm just a making a data grid with some informations about patients. One of the columns shows an date edited by the user (it doesnt have a data type, just with the format "dd/MM/yyyy HH:mm").


    After editing this column, the grid swaps day and month only when it is possible. Example:

    If the date is 04/03/2008, after the event "ValidadeEdit()" and before the "AfterEdit()" event, the cell value changes to 03/04/2008. But, if the swaps generate an invalid date, it doesnt do the change, like, if the date is 30/03/2008, it remains 30/03/2008

    Any tips?


    Thx!

     



    http://helpcentral.componentone.com/cs/forums/p/75121/204463.aspx#204463

  • 05-05-2008 12:35 PM In reply to

    Re: After editing a column, the grid swaps day with month and vice-versa

    Thanks for replying,

     I changed the datatype for the column and now is working fine. But it is really strange this behaviour...

     

    But, thanks anyway
     

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.