D
Don
I have a detailsView that I use with a GridView. When a row is
selected I show the GridView with a default mode of Edit. This shows
my fields with text boxes for changing the data. It also has the
update and cancel buttons.
Now I need to put the DetailsView into Insert mode when a button is
clicked. In the button clicked event handler, in the code behind, I
change to insert mode with this code:
dvSingleRow.ChangeMode(DetailsViewMode.Insert);
This takes me into InsertMode but I do not see any of the fields. If
I first select a row and then click the insert button I see all my
fields.
I am using autoGenerateRows=true because by ObjectDataSource is
dynamic and I may have different columns.
selected I show the GridView with a default mode of Edit. This shows
my fields with text boxes for changing the data. It also has the
update and cancel buttons.
Now I need to put the DetailsView into Insert mode when a button is
clicked. In the button clicked event handler, in the code behind, I
change to insert mode with this code:
dvSingleRow.ChangeMode(DetailsViewMode.Insert);
This takes me into InsertMode but I do not see any of the fields. If
I first select a row and then click the insert button I see all my
fields.
I am using autoGenerateRows=true because by ObjectDataSource is
dynamic and I may have different columns.