Hey Guys,
I have a Details View and I ahve enable editing in it. But on clicking the edit button all the fields are editable. I want only one field to be editable.
Please suggest

Recommended Answers

All 2 Replies

If you are using FormView you must have defined templates for ItemTemplate and EdititemTemplate

To make only one field editable in the EditItemTemplate make only the field you want editable as Editable and for rest others make it non editable , this means they should be displayed in label instead of textbox and for the one that should be editable make it TextBox

<FAKE SIGNATURE>
A Software Development Company.

In the <EditItemTemplate>, use textboxes only for those field that you want to edit. Use Label for non-editable fields.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.