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
660
Date + Time Input-Mask vor Column - How to ignore empty Time?
posted

Hi,

i like the user to add a Datei and - optionally - a time into a cell. 

So i set the Input-Mask like: this.dfgrid1.DisplayLayout.Bands[0].Columns["Datum"].MaskInput = "{date} {time}";

This works in a way, that the user can type along the date and the time.

BUT: If user only enters the date-part and leaves the time-part empty, an error occurs. Fair enough, but not what i like to happen :)

I would like to set the Time-Part to 00:00 if it isn't entered by the user. How could i do that? (I'm sure it's pretty simple but i'm looking at the wrong properties/events)