title: Telerik RadGrid set BoundColumn to ReadOnly in Edit Mode
body: <p>I have a Telerik RadGrid that has three bound columns and one button column. I would like to let the user edit the values in only one of the bound columns. The user can add a new record so i can't set the two bound column to read only. Is there anyway i can do this in the ASPX or do i have to do it in the code behind? I have some code that is working but it is not the best.</p>
  
  <p>Here's my code:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Case "Edit"
      Dim aoeAnswerCode As GridBoundColumn = CType(e.Item.OwnerTableView.GetColumn("aoeAnswerCode"), GridBoundColumn)
      aoeAnswerCode.ReadOnly = True
  
  Case "Update", "PerformInsert"
      For Each column As GridColumn In e.Item.OwnerTableView.RenderColumns
          If TypeOf column Is IGridEditableColumn Or column.UniqueName = "aoeAnswerCode" Then
  </code></pre>