안녕하세요
현재 작업으로 엑셀의 데이터를 가져와서 컬럼값을 datatable.columns 을사용하여 collection 으로 받은후에 Reverse 작업이 필요합니다.
찾아보니 arr 나 list 는 .Reverse 가 있는데 collection은 없어서
collection to list 나 collection 을 reverse 하는법 여쭤봅니다!
감사합니다.
안녕하세요
현재 작업으로 엑셀의 데이터를 가져와서 컬럼값을 datatable.columns 을사용하여 collection 으로 받은후에 Reverse 작업이 필요합니다.
찾아보니 arr 나 list 는 .Reverse 가 있는데 collection은 없어서
collection to list 나 collection 을 reverse 하는법 여쭤봅니다!
감사합니다.
Hi,
How about the following expression?
listDataColumn = dt.Columns.Cast(Of DataColumn).Reverse().ToList()
note: listDataColumn is List<DataColumn>
type
Regards,
Thx
I used the expression you gave, but an error occurred, so I used only collection to list and reversed the list in invoke code activity. Thanks for your help.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.