I have a datatable that has all the data in it but when my VB.net program runs it and I make a temptable, the temptable has no info. WHat am I doing wrong?

```
 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

```

I am attaching pictures 1 of my datatable before I run it so there is info there and the second is when running it shows it empty. I am now even getting the data directly from the table and not a copy of it or temptable anymore.
[![Picture 1 before running](https://i.stack.imgur.com/SJB0y.jpg)](https://i.stack.imgur.com/SJB0y.jpg)
[![while running its empty](https://i.stack.imgur.com/odRcq.jpg)](https://i.stack.imgur.com/odRcq.jpg)