>I've got a page with several detailsview controls attached to SQLDatasources for each table.
>
>I use the DetailsView controls strictly for inserting records. I have corresponding GridViews that are used for display and editing of each of the tables involved.
>
>I only make detailsviews enabled and visible if someone hits the ADD button for one of the tables. The detailsviews are set with startmode=insert. Once the record is inserted I disable and make invisible.
>
>Problem - If someone inserts a record into a table using the detailsview, the next time they go to insert a record, the detailsview shows the data from the previously inserted record.
>
>How can I clear the detailsview so the fields are blank prior to enabling/making visible?
>
>I see a method called ClearChildState in help, but naturally it is a protected method and is not available for use (naturally - that would be too useful).
Good you asked, I think I have the same problem too.
If it's not broken, fix it until it is.
My Blog