Solved

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

Posted on 2010-11-15
2
425 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 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