I have a dataset that is being populated from a text file.
example:
OrderNumber,Nam e,Model,Cost
123,john doe,product1,20 .99
123,john doe,product2,10 .75
There can be multiple of the same order number. In the dataset, I want to have a column "line number" and I want to put in it the value of the linenumber (in this case 1 and 2) per order. In sql , I was able to accomplish this by inserting rownumber() and grouping by order number. Can this be done in .net?
Thank you.
example:
OrderNumber,Nam e,Model,Cost
123,john doe,product1,20 .99
123,john doe,product2,10 .75
There can be multiple of the same order number. In the dataset, I want to have a column "line number" and I want to put in it the value of the linenumber (in this case 1 and 2) per order. In sql , I was able to accomplish this by inserting rownumber() and grouping by order number. Can this be done in .net?
Thank you.
Comment