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
14517
When AutoCRUD=false, get MissingRecordException for changed rows during Postback
posted

In previous versions of WebDataGrid, if AutoCRUD=false was set, then all the editing could be handled manually.  With this current version, the WebDataGrid attempts to lookup all the changed rows by key during a postback even when AutoCRUD=false.  If the Grid isn't reloaded at the beginning of the postback or if any of the rows no longer exist an exception occurs: Requested record cannot be found by key. (Infragistics.Web.UI.GridControls.MissingRecordException).


In my web application, the edits are performed first to multiple rows and then the grid is reloaded at the end.  Loading it at the beginning too would hurt performance, but the more important problem is that if any of the rows are removed by one user while another user is editing the grid (this is very likely) an exception will occur if the WebDataGrid looks for the missing rows instead of allowing the custom code to handle the updating.


Is there some property other than AutoCRUD that needs to be set for this version to disable the automatic row updating in the WebDataGrid?

Parents
  • 14517
    Offline posted


    The WebDataGrid is a databound control to enable this type of behavior you would need to bind to an intermediate datasource or collection.

    In Netadvantage 2010 Vol 2 WebDataGrid, you can enable both ViewState and DataViewState if you want to bind on the initial Page_Load only. .

Reply Children