Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-11-15
2
Medium Priority
?
430 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 2000 total points
ID: 34144370
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
ID: 34145604
Hello Carl,

Thanks for the solution it did the trick.

Les
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 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