PerformBatchUpdate method on WebGrid is throwing an exception

5 replies. Last post: April 18, 2010 11:56 PM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Gaurav DesaiMember

HI,

We are using WebGrid 7 in SharePoint Web Part where we are rendering the trid programatically.
I have BatchUpdate Enabled in my Grid and PromptUnsavedChanges flag to false. After i get the updated rows using GetChanges() method, i want to accept changes programtically at server side and for that i hvae call following function.
interSoftWebUIGridInstanc.PerformBatchUpdate( true , true );
But above line of statment failse and throws following exception, Please help.
--------------------
The 'rowErrors' start tag on line 4 does not match the end tag of 'BatchUpdateResult'. Line 4, position 792.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: The 'rowErrors' start tag on line 4 does not match the end tag of 'BatchUpdateResult'. Line 4, position 792.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[XmlException: The 'rowErrors' start tag on line 4 does not match the end tag of 'BatchUpdateResult'. Line 4, position 792.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +90
   System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) +77
   System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) +211
   System.Xml.XmlTextReaderImpl.ParseEndElement() +1947048
   System.Xml.XmlTextReaderImpl.ParseElementContent() +424
   System.Xml.XmlTextReaderImpl.Read() +29
   System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +557
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +50
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +162
   System.Xml.XmlDocument.Load(XmlReader reader) +96
   System.Xml.XmlDocument.LoadXml(String xml) +197
   ISNet.WebUI.WebGrid.WebGrid.PerformBatchUpdate(Boolean throwExceptionOnError, Boolean updateUI) +832
   V2Solutions.PWACustomMyTasks.PWACustomMyTasks.lnkBtnNextTimePeriod_Click(Object sender, EventArgs e) +51
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +90
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +76
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

All times are GMT -5. The time now is 10:39 PM.
Previous Next