1,105,312 Community Members

Edit One Field in DetailsView

Member Avatar
Posting Whiz in Training
208 posts since Jul 2008
Reputation Points: -3 [?]
Q&As Helped to Solve: 13 [?]
Skill Endorsements: 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

Member Avatar
Junior Poster
128 posts since Jul 2009
Reputation Points: 25 [?]
Q&As Helped to Solve: 6 [?]
Skill Endorsements: 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

A Software Development Company.

Member Avatar
Ramesh S
Posting Pro
584 posts since Jun 2009
Reputation Points: 129 [?]
Q&As Helped to Solve: 113 [?]
Skill Endorsements: 8 [?]

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

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