Solved

Programmatically adding Edit Button to command row of a DetailsView control.

Posted on 2010-11-15
2
419 Views
Last Modified: 2012-06-27
The title pretty much says it all.  Does anyone know how to do this?
0
Comment
Question by:leskelly
2 Comments
 
LVL 18

Accepted Solution

by:
carlnorrbom earned 500 total points
Comment Utility
Hi,

Well - if you do like this (assuming you have a detailsview with ID="DetailsView1"):

DetailsView1.AutoGenerateEditButton = True
DetailsView1.ChangeMode(DetailsViewMode.Edit)

Open in new window


It will add an "Edit" button to the DetailsView and swith to edit mode with required functionality.

/Carl.
0
 

Author Closing Comment

by:leskelly
Comment Utility
Hello Carl,

Thanks for the solution it did the trick.

Les
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Object to array 7 26
Replacing HTML tags in Textarea/Textbox 5 20
Asp.net mvc entity issue 6 18
Problem to page 4 11
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now