I have an UltraGrid bound to an UltraDataSource. One of the fields (DateOfBirth) is a date field. When the user clicks the "down" arrow to the right of the date (to pop up the calendar), it always defaults to 1/1/2001 (rather than the date in the cell) and then changes the date in the cell to 1/1/2001 once it has "popped up".
How do I get the UltraGrid to show the correct date (on the pop-up calendar) based on what is in the cell? For example, if the date in the cell is "5/1/1952", that's the date I want to show up when the user pops up the calendar -- not 1/1/2001.
Bfore-and-after screens shots are included.
Hey all,
Im using an UltraWinGrid with a DateColumn , when clicking the arrow the same type of calendar as yours is displayed.
I'd like to remove Saturdays and Sunday on this calendar but I don't have a direct access to a calendar object .
How can I customize this calendar ?
Thank you
Vianney
Hi Mike,
With this hotfix my problem was solved too. Thanks!
Calin
Hi Mike:
I just downloaded build 2068 version of NetAdvantage 2008 V3 and now it is working perfectly. Evidently there is something weird going on in the NetAdvantage 2008 V3 build 2059 that is causing this discrepancy.
I also downloaded the latest hotfix for NetAdvantage 2009 V1 (build 2013) and it works fine in that build, too.
Thanks again,
Kevin
I have a similar problem with Kevin. My system regional settings are not English. May be this cause the problem. And if I set the thread current culture like that:
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("ro-RO", true);
when I press 'down arrow' to pop up the calendar I get:
System.FormatException: String was not recognized as a valid DateTime. at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.Convert.ToDateTime(String value, IFormatProvider provider) at Infragistics.Win.UltraWinMaskedEdit.EditInfo.MaxValueForMask(Object maxValue, String mask) at Infragistics.Win.UltraWinMaskedEdit.EditInfo.CalculateTrueMaxValue() at Infragistics.Win.MonthDropDown.DoDropDown(EmbeddableUIElementBase element) at Infragistics.Win.DateTimeEditor.DoDropDown() at Infragistics.Win.EmbeddableEditorBase.DropDown() at Infragistics.Win.DateTimeEditorDropDownButtonUIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement) at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e) at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
even the cell has a valid date or is empty.
Hi Kevin,
As I said, this is not the behavior I am getting. It works fine for me. So either I have a newer version than you - in which case you should get the latest service release (you can download it here: My Infragistics Keys and Downloads - Download Anything and Everything You Own)
Or, this is related to some system setting.
I suspect the former.