I have a beginner question, I guess. My grid has a column where a web data chooser is used as editor control. Picking a date looks first ok, but after save the changes (post back) the WebDateChooser shows always Null value. UpdateCellBatch ist not called.
I guess I'm loosing the column configuration because users can make some selections of criteria filling up the data in the grid. Therefore postbacks are executed and I set every post back the dataSource (to a DataSet) and call DataBind.
When do I need set the DataSource property. Only once, even if the DataSet is empty on the first call of the page (if no criteria)?
Do I need call DataBind after every time the DataSource property ist set?
Do I need handle Grid_InitializeLayout (setup the webdateChoose column) on every postback (viewState is on)?
I have addes a zip with markup and code behind.
Thanks for any help. Markus
Making some changes in the grid, changes to the grid column using webDateCooser does not change the data (UpdateCellBatch is not celled). If I edit other columns without editor control, UpdateCellBatch is called and changes are saved.
It seems that WebDateChooser does not work in some way. Using WebDateEditor as Editor Control does not work either.
Here is my code behind in Initialize_Layout
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" ).DataType = "System.DateTime"; grid.Bands[1].Columns.FromKey( "ValidFrom" ).AllowUpdate = AllowUpdate.Yes;
I'm using Version 2009.2.2058 and .NET 2.0 /VS 2008.
Regards. Markus