C#: add a non-editable field telerik

i want to add a non-editable field box in a telerik form. I have the following.

 <telerik:GridBoundColumn DataField="code" EditFormColumnIndex="0" HeaderText="Code" />
 however, this displays an editable box. if i do readOnly. it disappears all together
  <telerik:GridBoundColumn DataField="code" EditFormColumnIndex="0" HeaderText="Code" ReadOnly="true" />
Who is Participating?
badtz7229Connect With a Mentor Author Commented:
@Easwaran Paramasivam : that didn't work. it still is editable.

i did find a solution:
in my _ItemDataBound function
            GridEditFormItem editFormItem = (GridEditFormItem)e.Item;
            TextBox TextBox1 = (TextBox)editFormItem["code"].Controls[0];
            TextBox1.Enabled = false;
Easwaran ParamasivamCommented:
Remove  EditFormColumnIndex="0"
badtz7229Author Commented:
it resolved issue for me.
All Courses

From novice to tech pro — start learning today.