How to get another column to LinQ Group by

exam DT structure

Column0 Column1 Column2 Column3
a t tt 10
a t tt 20
b h hh 30
b h hh 40
c y yy 50
c y yy 60

I want result DT
Column0 Column1 Column2 Column3
a t tt 30
b h hh 70
c y yy 110

I try LinQ
but can not get Column1, 2 Data (just get Column0, Column3)
i try LinQ Result DT
Column0 Column3
a 30
b 70
c 110

is possible add Column1, Column2?

How to get result DT by LinQ ?
Please anybody help me

What is the LINQ query tried?

1 Like

Check the below link. May help you.

Karthik Byggari

1 Like

PFA demo xaml below. I did for you quick implementation:

feel free to adopt some datatypes, column accesses (Name, Index) etc.
Let us know your open questions and feedback. Please mark solving post as solution. So others can benefit from it.

Demo XAML: qfactor2013.xaml (8.2 KB)


@ppr Thank you for Great Help
perfectly! many Thanks

@KarthikByggari It’s different from what I wanted, but thanks for helping me.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.