Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can DetailsView change mode?

Status
Not open for further replies.

bigoldbulldog

Programmer
Feb 26, 2002
286
US
Case: DetailsView in .NET 2.0 without DataSourceID, i.e. NO DataSource object. I'm forced to go with OleDB objects in my methods.

Problem: when either Insert or Edit command buttons are clicked the DetailsView object doesn't appear to enter insert or edit modes. Obviously the ModeChanging event occurs but nothing happens. Also, ItemInserting event is never reached.

Any thoughts on making this work? Is the DataSource object required? Should I use a dummy object?

Cheers,
ND [smile]
 
Can you post some code on how you create your object and are using it? It's hard to help without seeing what you are doing.
 
I added in a SQLDataSource and set the DataSourceID property. Also, I worked out the issues forcing OleDB, so it seemed to fix the problem.

Cheers,
ND [smile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top