We help IT Professionals succeed at work.

Force Gridview Edit to complete before leaving control

Thirt
Thirt asked
on
283 Views
Last Modified: 2013-11-26
I have a gridview that allows users to Edit the rows. On top of the gridview, I have a formview I use for data entry inserts. Problem I find is that new users click on the gridview Edit, make the change and don't click the UPDATE or CANCEL option. They then select the formview Insert link and the Insert form loads, with the gridvew record still in edit mode under the formview.

I would like a way to force the user to either Update or Cancel the edit before they move off the griview control. Is that possible?
Comment
Watch Question

Commented:
Could you disable the Insert button on clicking the Edit button and then re-enable it again on the click of the Cancel or Update?

Author

Commented:
Well, that would require referncing the Formview Insertitem template controls...which I think is possible but not friendly. But there is also a dropdown I use above the gridview as a filter for the gridview results. I would need to disable that as well? I have a link to another form.... I guess that's my only option.
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Hmmm, I think I actually understand what you said. Let me see how far I get before I run into a brick wall.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.