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
4032
WebDateChooser column displays value only after second selection
posted

Hello,

In my grid (version 2007.3) I have a date column using a web date chooser control for selecting the date. I have setup my column by code:

grid.Bands[1].Columns.FromKey( "ValidFrom" ).Move( 0 );

grid.Bands[1].Columns.FromKey( "ValidFrom" ).Header.Caption = "Gltig ab";

grid.Bands[1].Columns.FromKey( "ValidFrom" ).Width = Unit.Percentage( 10 );

grid.Bands[1].Columns.FromKey( "ValidFrom" ).Format = "dd.mm.yyyy";

grid.Bands[1].Columns.FromKey( "ValidFrom" ).Type = ColumnType.Custom;

grid.Bands[1].Columns.FromKey( "ValidFrom" ).EditorControlID = this.edValidDate.UniqueID;

grid.Bands[1].Columns.FromKey( "ValidFrom" ).DefaultValue = DateTime.Today;

After inserting a new row and choose a date the date displayed is still the initial value. After chooseing the date a second time the date displays fine.

Does anybody know whats going wrong here ?

Thanks for any help. Markus