Detailsview empty dataset insert

E

Eric Zhao

My details view is in insert mode and my dataset is empty but the details
view doesnt show.

who can help me, how to do?

Also I tried to set the defaultmode to insert mode, but i found i can't
cancel the inserting.

thanks in advance.
 
B

Brock Allen

((Oops, previous was a misclick))

What DataSource control are you using? The problem is that the DetailsView
needs to know a 'template' of what the insert data should be, so it calls
the SelectMethod to get an example of what to automatically build for ther
insert. If you're using an ODS and your select method returns null then the
DetailsView has no idea what fields to make available.

The other solution is to build the InsertTemplate for each value manually.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top