C# DataTable

Joined
Jul 9, 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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top