G
Guest
Hi!
I've declared a DataView in the form's declaration section as global variable:
Dim dtvGlobal As New System.Data.DataView
In some event I need to make an identical copy (structure + data) of the
global dataview and then manipulate the copy without changing the source
dataview:
Dim dtvLocal As New System.Data.DataView
dtvLocal = dtvGlobal
dtvLocal.Sort = "BarCode"
But when I try dtv.Sort the dtvGlobal is affected too.
Please where I am making mistake?
I've declared a DataView in the form's declaration section as global variable:
Dim dtvGlobal As New System.Data.DataView
In some event I need to make an identical copy (structure + data) of the
global dataview and then manipulate the copy without changing the source
dataview:
Dim dtvLocal As New System.Data.DataView
dtvLocal = dtvGlobal
dtvLocal.Sort = "BarCode"
But when I try dtv.Sort the dtvGlobal is affected too.
Please where I am making mistake?