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/
精彩评论