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?
leskellyAsked:
Who is Participating?
 
carlnorrbomConnect With a Mentor Commented:
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
 
leskellyAuthor Commented:
Hello Carl,

Thanks for the solution it did the trick.

Les
0
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.