Hello guys,
I'm working on a project using Java with web service to communicate with the DB and C# to retrieve/update data from DB thanks to the Web service in Java.Well, I have an UltraGrid and two of the columns are DateTime field. Currently, the two fields are displaying the date formatted like that : dd-mm-yyyy hh:mm:ss.And I would like to display this : hh:mm:ss only.I am a rookie on C# or .NET.I also would like to know if there is a picker for the hours like there is one for the date ?Heres's a screen :
Thank you !EDIT: I set the format to HH:mm:ss. When I run the application it shows me the time like 00:11:00 (so it's fine) but when I click on the fiel to edit it it shows me the date and not the time anymore. I do not mind to see the date, I care only about the time. EDIT 2: It's okay for the seing only the time. Now my query is about the picker time to editing the field. There is something like that ?
Thank for your answer.What to say... AWESOME.Thanks a lot !Have a nice day :)
Hi Anthony,
Thank you for posting in our forums.
What I would suggest in this case is to set the Style property of the column to Time. This will set the proper format string. Then for the editor you can use the EditorComponent property and set it to an UltraDateTimeEditor. You can show spin buttons inside the UltraDateTimeEditor and configure their interval so the user can easily increase and decrease the time.
I have attached a small sample which demonstrates this suggestion. Let me know if the UltraDateTimeEditor fulfills your requirement for editing.
Please let me know if you have any additional questions.