protected void grdSurveyDue_RowUpdating(object sender, GridViewUpdateEventArgs e) >{ > > // Get the item to be updated > this.grdSurveyDue.EditIndex = e.RowIndex; > // Retrieve the previous SurveyDue DataSet > DataSet dsSurveyDue = (DataSet)Session["dsSurveyDue"]; > // Get the DataRow > DataRow CurrentRow = dsSurveyDue.Tables["MyTableName"].Rows[e.RowIndex]; > > // Use the below to set the entity data row > this.oSurveyDue.Entity.SetDataRow(CurrentRow); > > // NOTE: Put code in here to check and manipulate the data > > // Save the DataSet (the GridView automatically binds back) > this.Save(this.oSurveyDue, dsSurveyDue); > > // Reset the edited item and rebind the GridView > this.grdSurveyDue.EditIndex = -1; > this.BindControl(this.grdSurveyDue); >}