title: Refresh GridView inside Update Panel
body: <p>I have a gridview contained inside an update panel. I edit a record in the gridview using a button which is inside the gridvied and it does update panel postback( __doPostBack), then I update my dataset for the gridview and try to refresh the griview with new data source but I am getting the following error.</p>
  
  <p>I rebind my gridview as follows,</p>
  
  <pre><code>gvwSearchResult.DataSource = dsP1.prSearchItem;
  gvwSearchResult.DataBind();
  UpdatePanel1.Update();
  
  Uncaught Sys.WebForms.PageRequestManagerServerErrorException:   
   Sys.WebForms.PageRequestManagerServerErrorException:
   Invalid postback or callback argument.  
   Event validation is enabled using &lt;pages enableEventValidation="true"/&gt; in configuration or 
  &lt;%@ Page EnableEventValidation="true" %&gt; in a page.
   For security purposes, 
  this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  
  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or 
  callback data for validation.
  Sys.WebForms.PageRequestManager._endPostBackScriptResource.axd:307
  Sys.WebForms.PageRequestManager._parseDeltaScriptResource.axd:749
  Sys.WebForms.PageRequestManager._onFormSubmitCompletedScriptResource.axd:584
  (anonymous function)ScriptResource.axd:22
  (anonymous function)ScriptResource.axd:1519
  Sys.Net.WebRequest.completedScriptResource.axd:2924
  _onReadyStateChange
  </code></pre>
  
  <p>Any Idea?</p>