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
580
CellEditing and System.DateTime
posted

hi,

if i have a System.DateTime bound column with DBNull.Value in the datasource i get an error if i edit an other cell (not the date cell itself). In  my case the date column is even set to readonly. The value gets postet to the dataset (eg it works) but the grid shows an error after completion.

error:

Async request failed

 

[InvalidCastException]: Specified cast is not valid.

   at Infragistics.Web.UI.GridControls.EditingCore.OnCallbackRender(CallbackObject callbackObject, StringBuilder responseJSONString)

   at Infragistics.Web.UI.GridControls.GridBehavior.Infragistics.Web.UI.GridControls.IGridBehavior.OnCallbackRender(CallbackObject callbackObject, StringBuilder responseJSONString)

   at Infragistics.Web.UI.GridControls.WebDataGrid.CallbackRender(CallbackObject callbackObject)

   at Infragistics.Web.UI.GridControls.ContainerGrid.CallbackRender(CallbackObject callbackObject)

   at Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.Infragistics.Web.UI.IControlCallback.CallbackRender(CallbackObject callbackObject)

   at Infragistics.Web.UI.Framework.RunBot.CallbackRenderRecursive(CallbackObject callbackObject)

   at Infragistics.Web.UI.Framework.RunBot.RenderFormCallBack(HtmlTextWriter writer, Control control)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)

   at Infragistics.Web.UI.Framework.RunBot.RenderPageCallBack(HtmlTextWriter writer, Control control)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.Page.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

[HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.

   at System.Web.UI.Page.HandleError(Exception e)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest()

   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)

   at System.Web.UI.Page.ProcessRequest(HttpContext context)

   at ASP.webform1_aspx.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Parents Reply Children
No Data