Hi guys. As it says in the title, i have a data table dt1 which needs to be sorted using an index column indexColumn = 4 in an ascending order.
I used the Sort Data Table activity as below and it works fine.
input: dt1
output: dt2
index: indexColumn
But i wanna do this in an Invoke Code activity with vb.net.
What i’ve tried so far is the following:
That will take the column name and not its index, therefore you get that error… Dim orderedby = From p As DataRow In dt.Rows Order By p.Item(4) Ascending