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

The title pretty much says it all.  Does anyone know how to do this?
Who is Participating?
carlnorrbomConnect With a Mentor Commented:

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

DetailsView1.AutoGenerateEditButton = True

Open in new window

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

leskellyAuthor Commented:
Hello Carl,

Thanks for the solution it did the trick.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.