maintain infopath form position on view change

I have an infopath filler form 2007. it has two views. View 1 has a long list of repeating sections with read only text fields in each section. View 2 has same text fields but editable. User scrolls down View 1, finds a section they want to edit, click a button that brings them to View 2. They edit the fields in View 2, click the button on View 2 that saves the information to the corresponding section on View 1 and switch them back to the View 1. The problem is that it always bring them back to the top on the View 1, not to the section that they just edited. How to fix this?
I use C# as code behind.
ilyagzakAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
when it goes back, it is going to the first control ...use code to Set Focus after the View is opened again
0
ilyagzakAuthor Commented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
happy you got it ~ thanks for sharing the link :)
0
ilyagzakAuthor Commented:
The Microsoft solution that I found explains in details what happens and has a code sample how to fix it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
InfoPath

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.