Hiding Details view after update

I had the need to hide a detailsview after an update. Forget using visible=false, this just hides it permanently!

Try setting the datagrid selectedindex = -1

        protected void dvDetailsView_Updated(Object sender, System.Web.UI.WebControls.DetailsViewUpdatedEventArgs e)
        {
            gvGridview.SelectedIndex = -1;
        }
Did you like this? Share it:

No related posts.



One Response to “Hiding Details view after update”

  1. sonic1971 says:

    Awesome — thanks!

Leave a Reply

You must be logged in to post a comment.