1.11M Members

Edit One Field in DetailsView

 
0
 

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

 
0
 

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.

 
0
 

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

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article