title: Problem programmatically setting columns to read-only on a Telerik RadGrid
body: <p>I'm trying to dynamically make certain columns readonly at runtime using the following code in my Page_Load handler:</p>
  
  <pre><code>                GridNumericColumn gncp = grid.MasterTableView.GetColumn("ActualProduction") as GridNumericColumn;
                  if (gncp != null)
                  {
                      gncp.ReadOnly = true;
                  }
  </code></pre>
  
  <p>However, the above code only works if the column is the last column in the grid.  If I try with the second to last, or columns further left, the Edit command on the row no longer works.  No exception is thrown, and the EditCommand fires, but that's where the party stops.</p>
  
  <p>I suspect I may be modifying the grid in the wrong place in the page life cycle, but I really don't want to start looking for the right place by trial and error.  I bind my grid using <code>grid_NeedDataSource</code>, not in page load.  Any ideas?</p>