I have one Datatable and I have two Dataviews, I wanted to use each Dataview to fill a Combobox as next code:
Dim xDv_Parents As DataView = MyVar_Dt_AllAccounts.DefaultView
xDv_Parents.RowFilter = "AccType='Main'"
Call xCLS.MyCodes_CboFill_Dv(Me.CboAccParent, "AccName", "AccID", xDv_Parents)
Dim xDv_Final As DataView = MyVar_Dt_AllAccounts.DefaultView
xDv_Final.RowFilter = "AccType='Final'"
Call xCLS.MyCodes_CboFill_Dv(Me.CboAccFinal, "AccName", "AccID", xDv_Final)
but when I debug the app it gives me the same content in two Comboboxs according the last Dataview the named is (xDv_Final).
I tried to use one Dataview with different row filter but it wasn't a success. what's the problem exactly here please!?