ListView. Cancel. It does not!

S

shapper

Hello,

I created a ListView at runtime.
All items, including InsertItem and EditItem, where also implemented
at runtime using ITemplate.
Both InsertItem and EditItem templates use the same function because
the form is the same.

Everything works fine! The inserting, the editing and the cancel
button in editing!
But the cancel button in Insert template does not close the insert
template! Why?

To open the insert template I have a button on the page where the
ListView is added that has the following:

Private Sub lbInsert_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles lbInsert.Click

lvTags.InsertItemPosition = InsertItemPosition.FirstItem

End Sub ' lbInsert_Click

This opens the insert item template. But if I click the cancel button
inside the InsertItemTemplate it does not close!

What am I doing wrong?

Thanks,
Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top