Mám datatable, že má všetky údaje v to, ale keď môj VB.net program beží to a spravím temptable, na temptable nemá žiadne info. Čo robím zle?
Public Sub HTSCode()
Dim TempTable As New DataTable
Dim DV As DataView
TempTable = RatesDataSet.HTS
DV = TempTable.DefaultView
DV.Sort = "HTS Code NA"
TempTable = DV.ToTable
For Each Row As DataRow In TempTable.Rows
'doesnt get to this point cause there are no rows.
Next
End Sub
Ja som priraďovanie obrázkov 1 môjho datatable predtým, než som ho spustiť, takže tam je info tam a druhá je, keď beží ukazuje prázdne. Ja som teraz aj získanie údajov priamo zo stola, a nie kópiu alebo temptable už.