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
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