title: How to update gridview row without datarowview?
body: <p>In my RowDataBound event I would like to update the row values, but I can't convert my object to a DataRowView. Is there another way to update the row columns?</p>
  
  <p>Here's what I have. It can't convert type Offer to DataRowView.</p>
  
  <pre><code> /// &lt;summary&gt;
      /// Gridview Row Data Bound 
      /// &lt;/summary&gt;
      protected void grdvOffers_RowDataBound(object sender, GridViewRowEventArgs e)
      {
          // Converts the UTC date to PST timezone
          if (e.Row.RowType == DataControlRowType.DataRow)
          {            
  
              //DataRow row = ((DataRowView)e.Row.DataItem).Row;
              Offer row = ((Offer)e.Row.DataItem).Row;
              DateTime utcTime = row.Field&lt;DateTime&gt;("Created");
              DateTime dtUpdateDateTime = TimeZoneInfo.ConvertTimeFromUtc(utcTime, CFrmFunctions.GetPresetTimeZone());
              row.SetField&lt;DateTime&gt;("Created", dtUpdateDateTime);
          }
      }
  
  
   &lt;asp:ObjectDataSource ID="objOfferDataSource" runat="server" SelectMethod="GetAllOffers"
          TypeName="CancelForms.Repositories.OfferRepo"&gt;&lt;/asp:ObjectDataSource&gt;
  </code></pre>