Hello Friends,
I am having excel data as shown below,
I need to take transpose of data strictly using LINQ,
I have written below LINQ, but its not working,
(
From row In DataTbl
From col In DataTbl.Columns.Cast(Of DataColumn)
Select OP_DT.Rows.Add({col.ColumnName,CStr(row(col.ColumnName))})
).CopyToDataTable
Build data table - “OP_DT”