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

Change column type programmatically

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Laura
Top achievements
Rank 1
Laura asked on 22 Sep 2008, 07:22 PM
How can I change the type of column using the C# codebehind?

What I want to do is have a gridmaskedcolumn and ALWAYS show the field
in an edit form, even if it is in read only. So what I was thinking of doing
was if the user chooses read only, then instead of changing the readonly
property to true, to change the type of column
 to  just show the text....is this possible?


Thanks in advance,
Laura

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 25 Sep 2008, 11:24 AM
Hi Laura,

Arbitrarily altering the control's structure and/or the column type is not a recommended approach. You can alter the ReadOnly property for the column to achieve this effect.

All the best,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Laura
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or