开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜