title: asp Gridview column becomes not editable after changing the text in OnRowDataBound event
body: <p>I use a GridView to display and allow for modifying data. But instead of directly using the data in the database, I have to convert them (consider switching between different date formats), so in the RowDataBound event I update the Text field of one column. However, that data column becomes not editable afterwards when OnRowEditing event is caught. </p>
  
  <p>Code:</p>
  
  <pre><code>    public void OnRowEditing(Object sender, GridViewEditEventArgs e)
      {
          gv.DataSource = getGridViewDataSource();
          gv.EditIndex = e.NewEditIndex;
          gv.DataBind();
      }
  
      public void OnRowDataBound(Object sender, GridViewRowEventArgs e)
      {
          // convert time display to another format
          if (e.Row.RowType == DataControlRowType.DataRow)
          {
              // If I comment out this line, then the field is editable, 
              // but the data format is not what I want
              e.Row.Cells[4].Text = process(e.Row.Cells[4].Text);
          }
      }
  
      public SqlDatasource getGridViewDataSource() {//Customer sql data source}
      public string process(string) {//Customer code}
  </code></pre>
  
  <p>The code follows the sample provided <a href="https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound(v=vs.110).aspx" rel="nofollow">here</a>. The question is, what else is changed except altering the displayed text? What if I really want it to still be editable? MSDN does not seem to explain that bit. Anyone can help?</p>