I need help regarding list view. I'm trying to remove the records in my list view but when I try to use lvRecords.Clear() it also removes the columns that I need. I just need to clear the records not the columns. :(
According to the MSDN, the ListView.Clear method
Removes all items and columns from the control.
To clear just the items, you need to call the Clear method on the Items property. Try this instead:
lvRecords.Items.Clear
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With