DiverDan
Contributor
Once a row or multipule rows are removed from the listview how can they be reinststed with undo?
Here's what I have so far...
Case "Clear &Row"
Try
btnUndo.ImageIndex = 19
Dim i As ListViewItem
Dim myDataObject As New DataObject()
For Each i In lvwData.SelectedItems
myDataObject.SetData(DataFormats.Text, True, lvwData.SelectedItems)
Clipboard.SetDataObject(myDataObject, True)
lvwData.Items.Remove(lvwData.SelectedItems(0))
Next
Catch
End Try
Here's what I have so far...
Case "Clear &Row"
Try
btnUndo.ImageIndex = 19
Dim i As ListViewItem
Dim myDataObject As New DataObject()
For Each i In lvwData.SelectedItems
myDataObject.SetData(DataFormats.Text, True, lvwData.SelectedItems)
Clipboard.SetDataObject(myDataObject, True)
lvwData.Items.Remove(lvwData.SelectedItems(0))
Next
Catch
End Try