471,350 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Preserving field values using with DetailsView_ItemInserted

I am having difficulty with preserving field values in a DetailsView
control after clicking the insert button event.
protected void DetailsView1_ItemInserted(object sender,
DetailsViewInsertedEventArgs e)
{
e.KeepInInsertMode = true;
GridView1.DataBind();
}

What I noticed is if I click in a button outside DetailsView it does
preserve the values. My question is if is there any way to reproduce
the previous behavior without having to programatically restore the
control state values. Or maybe override the parte where the values are
being cleaned.

The reason I ask that is because I over 50 controls (template and
bound) and it will be a pain to recreate the state of these controls
manually.

Thanks

Rod

Feb 3 '06 #1
0 1350

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by A.Kelly | last post: by
4 posts views Thread by Marc Tanner | last post: by
2 posts views Thread by mypublicmail | last post: by
3 posts views Thread by sophia.agnes | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.