0

I have a .Net WebForms application that uses a ListView and the built in edit capabilities. The page contains the ability to select the ListView data based on a dropdown.

Currently when I change the data the row number that was being edited before changing the data, continues to use the EditItemTemplate with the new data.

What I want to do is change the data from this dropdown and cancel any existing edits from the dropdown's change event, but I'm not seeing how to get the row that is being edited out of EditItemTemplate and back to the standard ItemTemplate.

Any suggestions?

1
  • If I'm going in the wrong direction, please let me know. I see people have started to down vote this. What am I missing here?
    – Josh Russo
    Apr 30, 2015 at 15:06

1 Answer 1

1

Found it! ListView.EditIndex = -1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.