Hello.
The conversion must be done as shown in the picture below.
How can I convert DataTable efficiently?
I can't program.
I want to return DataTable Type.
I programmed the code below.
I don't like the code below.
The conversion must be done as shown in the picture below.
How can I convert DataTable efficiently?
I can't program.
I want to return DataTable Type.
I programmed the code below.
I don't like the code below.
Code:
DataRow[] rowKPS = originalDt.Select("subject = 'KPS'");
DataRow[] rowDPA = originalDt.Select("subject = 'DPA'");
DataRow[] rowESG = originalDt.Select("subject = 'ESG'");
DataTable retKPS = rowKPS.Transpose();
Last edited: