I have been trying to create a copy of an object but it appears to be linked in some way. Here is an example
Dim dataview as DataView = results.DefaultView
' Some amazing foreach loop
' but thoughtout the loop I want to create a copy of the data and then filter it
Dim filterView as DataView = dataview
filterView.RowFilter = "County = '" & loop.County &"'"
The plan is to then loop through this subset of data but when I debug the project the data contained within dataview is the same as filterView. I have tried DirectCast() and still get the same result. How do I create a copy of the object without creating some link to the original object?
Hope this makes sense but let me know if you need any further clarification.