Erick Garcia
Erick Garcia

Reputation: 842

DetailsView Fields not Changing to Textboxes in Edit Mode

I created a DetailsView programmatically and I added a button to fire commands for the add, edit and delete.

Here's the event handler for the commands:

switch (e.CommandName)
            {
                case "Add":
                    dvSpotlightListDetails.ChangeMode(DetailsViewMode.Insert);
                    break;
                case "Edit":
                    dvSpotlightListDetails.ChangeMode(DetailsViewMode.Edit);
                    break;
                default:

                    break;
            }

The add/insert commands changes the fields on the DetailsView to textboxes. But when selecting the edit command nothing happens.

I'm not so familiar with the process of the DetailsView when made through code-behind so I'm not sure what I am missing.

Upvotes: 0

Views: 1274

Answers (1)

Adam Tuliper
Adam Tuliper

Reputation: 30152

See if this helps: http://forums.asp.net/t/1249276.aspx/1 http://www.shotdev.com/aspnet/aspnet-vbnet-detailsview/aspnet-vbnet-detailsview-edit-update/

Upvotes: 1

Related Questions