Solved

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

Posted on 2010-11-15
2
426 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

627 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