开发者

DetailsView Fields not Changing to Textboxes in Edit Mode

开发者 https://www.devze.com 2023-03-04 19:54 出处:网络
I created a DetailsView programmatically and I added a button to fire commands for the add, edit and delete.

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

Here's the event h开发者_StackOverflowandler 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.


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/

0

精彩评论

暂无评论...
验证码 换一张
取 消