C# DataTable

Joined
Jul 8, 2023
Messages
25
Reaction score
0
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.



qe3.png



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:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,044
Members
48,769
Latest member
Clifft

Latest Threads

Top