I have a simple List<CustomObject> that I'm binding to an UltraWebGrid. I've added an UpdateCell event handler to the grid. I get the event on all the fields except for the DateTime fields. I'm also using the InitializeDataSource event handler to bind the grid. When I change a value in the DateTime fields, the InitializeDataSource event fires and reverts my changes. Any ideas?
protected void Page_Init(object sender, EventArgs e){
FeeScheduleGrid.InitializeLayout +=
new InitializeLayoutEventHandler(FeeScheduleGrid_InitializeLayout);
FeeScheduleGrid.UpdateCell +=
new UpdateCellEventHandler(FeeScheduleGrid_UpdateCell);
FeeScheduleGrid.InitializeDataSource +=
new InitializeDataSourceEventHandler(FeeScheduleGrid_InitializeDataSource);
...
}
<SES:SesDataGrid ID="FeeScheduleGrid" runat="server"><DisplayLayout BorderCollapseDefault="Separate" Name="ctl00xFeeScheduleGrid" RowHeightDefault="20px"Version="4.00" AllowUpdateDefault="Yes"><FooterStyleDefault CssClass="listfooter"> </FooterStyleDefault><FrameStyle BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt"></FrameStyle><EditCellStyleDefault BorderStyle="None" BorderWidth="0px"></EditCellStyleDefault><HeaderStyleDefault CssClass="ListHead" /><RowStyleDefault CssClass="ListItem"><Padding Left="3px" /></RowStyleDefault><ActivationObject BorderColor="" BorderWidth=""></ActivationObject></DisplayLayout></SES:SesDataGrid>
I upgraded to the latest version, 2010 Vol1 and the problem went away. Must have been a bug in the 2009 Vol2 version.