How to handle cancel command on a formview inside of a datalist?
I have no problem using the findcontrol method to work with the formview, but I want to hide the formview when the cancel button is pressed. I am new and at a loss... been looking everywhereI can't tell if the Cancel button is on your FormView or on your DataList, but either way, you'd do the same thing. When you handle the Cancel button (you have to do it manually in DataList, in FormView you can handle the OnModeChanging event and see if CancelingEdit in the event args is true), use FindControl to find the FormView and set FormView.Visible = false.
Hope this helps...
Labels: ado, button, cancel, command, datalist, findcontrol, formview, handle, hide, inside, method, net, pressed
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home