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

[Solved] How to make a readonly column visible in edit mode?

1 Answer 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris May
Top achievements
Rank 1
Chris May asked on 17 Jan 2010, 05:03 AM
I'm working with the grid and trying to edit a record.

Normally, I show stuff like "LastModifiedDate" and primary key ID values on the edit form, but as labels and not as editable controls.

I can probably do this by using a template column and making the edit columns labels, but I figured setting a col = readonly should do the trick, but it appears to just not show the field at all on the edit form.

Is there any way to get these columns to display on the edit form but not as editable controls?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Jan 2010, 04:40 AM
Hi,

The ReadOnly property for columns indicaties if the column would be visible/available for editing in edit forms. So you could use the TemplateColumns, with a Label in its EditItemTemplate.

Thanks
Princy.
Tags
Grid
Asked by
Chris May
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or