// We now need to refresh the DataSet if (Session["dts"] != null) { DataSet ds = (DataSet)Session["dts"]; DataRow[] PersonRow = ds.Tables[0].Select("PersonID = '" + this.SelectedPersonID.ToString() + "'"); if (PersonRow != null) { PersonRow[0]["FirstName"] = (string)e.NewValues["FirstName"]; PersonRow[0]["LastName"] = (string)e.NewValues["LastName"]; this.ProfilesGrid.DataBind(); } }