North American Sales: 1-800-231-8588
Global Contacts
My Account
Menu
North American Sales: 1-800-321-8588
My Account
Sign In/Register
Design & Development
Design & Develop
Best Value
Infragistics Ultimate
The complete toolkit for building high performing web, mobile and desktop apps.
Indigo.Design
Use a unified platform for visual design, UX prototyping, code generation and application development.
Web
Ignite UI for Angular
Ignite UI for JavaScript
Ignite UI for React
Ultimate UI for ASP.NET
Indigo.Design
Desktop
Ultimate UI for Windows Forms
Ultimate UI for WPF
Prototyping
Indigo.Design
Mobile
Ultimate UI for Xamarin
Ultimate UI for iOS
Ultimate UI for Android
Automated Testing Tools
Test Automation for Micro Focus UFT: Windows Forms
Test Automation for Micro Focus UFT: WPF
Test Automation for IBM RFT: Windows Forms
UX
Indigo.Design Desktop
Collaborative prototyping and remote usability testing for UX & usability professionals
Indigo.Design
A Unified Platform for Visual Design, UX Prototyping, Code Generation, and App Development
Business Intelligence
Reveal Embedded
Accelerate your time to market with powerful, beautiful dashboards into your apps
Reveal App
Empower everyone in your organization to use data to make smarter business decisions
Team Productivity
Learn & Support
Support
Help & Support Documents
Blogs
Forums
Product Ideas
Reference Applications
Customer Stories
Webinars
eBook & Whitepapers
Events
Free Trials
Pricing
Product Pricing / Buy Online
Renew Existing License
Contact Us
Forums
Ultimate UI for ASP.NET Web Forms
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
Close
State
Suggested Answer
Replies
2 replies
Answers
1 answer
Subscribers
9 subscribers
Views
583907 views
Users
0 members are here
Batch Updating
WebDataGrid
MissingRecordException
Share
More
Cancel
325
WEB DAT GRID - BATCH UPDATE - MissingRecordException
David
posted
over 12 years ago
ENVIRONMENT: VISUAL STUDIO 2008, VB.NET, ASP.NET Framework 3.5, NetAdvantage Select 2012 Vol. 1 I have 3 controls on the page… · Dropdown list · SqlDataSource · Webdatagrid (EnableDataViewState = false, EditingCore.AutoCRUD = true, EditingCore.BatchUpdating = true) -------------------------------------------------------------------------------------------------- Dropdownlist.selected value is the SelectParameter for the SqlDataSource Select Command. Everytime the user selects a new item in the dropdown list I postback to the server and call a method. In the method I perform a SqlDataSource.DataBind and a webdatagrid.DataBind. -------------------------------------------------------------------------------------------------- I can successfully do batch updates in the grid and then save the changes to the database. After saving the changes I can select a different item from the dropdown list and rebind the webdatagrid. -------------------------------------------------------------------------------------------------- The problem comes if I update the grid and do NOT save the changes before selecting a new item from the dropdownlist (triggering the SqlDataSource.DataBind and the webdatagrid.DataBind). When I have pending changes and I rebind the grid I get a MissingRecordException. Here’s the Stack trace… -------------------------------------------------------------------------------------------------- [MissingRecordException: Requested record cannot be found by key.] Infragistics.Web.UI.GridControls.EditingCore.OnAction(String actionType, Object id, Object value, Object tag) +1030 Infragistics.Web.UI.GridControls.GridBehavior.Infragistics.Web.UI.GridControls.IGridBehavior.OnAction(String actionType, Object id, Object value, Object tag) +48 Infragistics.Web.UI.GridControls.GridBot.LoadAdditionalClientState(Object state) +1299 Infragistics.Web.UI.Framework.RunBot.HandleRaisePostDataChangedEvent() +205 Infragistics.Web.UI.GridControls.GridBot.HandleRaisePostDataChangedEvent() +73 Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.RaisePostDataChangedEvent() +37 System.Web.UI.Page.RaiseChangedEvents() +165 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485 -------------------------------------------------------------------------------------------------- Has anyone encountered this before? If so is there a solution to prevent this from occurring? Thank you for your help.
Parents
No Data
Reply
13438
[Infragistics] Nikifor Tsvetkov
posted
over 12 years ago
Hello David,
Please let me know if you have any further questions regarding this issue.
Cancel
Reply
Cancel
Children
No Data