This is a migrated thread and some comments may be shown as answers.

[Solved] Any way to hide RadGrid Edit text boxes?

1 Answer 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 24 Aug 2009, 04:24 PM
When you edit a RadGrid record, we can clearly see the text boxes, one over the other being displayed giving a user the option to change each column of records.  Is there an option to hide any of the text boxes?  I included a column in the text box but hid the column and when editing the record, I don't want that particular column being displayed if a user has to edit the record.  Thanks!

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Aug 2009, 04:14 AM
Hello Brett,

If you do not want to display the column in edit mode, then you can set the ReadOnly property of that column to true as shown below:
aspx( declaratively):
<telerik:GridBoundColumn HeaderText="BoundColumn" Visible="false" ReadOnly="true"  UniqueName="BoundColumnUniqueName" DataField="Name" > 
</telerik:GridBoundColumn> 

(OR)
c#(dynamically):
RadGrid1.MasterTableView.GetColumn("BoundColumnUniqueName").Visible = false
(RadGrid1.MasterTableView.GetColumn("BoundColumnUniqueName"as GridBoundColumn).ReadOnly = true

Thanks
Princy.
Tags
General Discussions
Asked by
Brett
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or