Solved

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

Posted on 2010-11-15
2
424 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
carlnorrbom earned 500 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

Technology Partners: 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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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