I'm new to c#. I have an array values like this
id name subject marks
1 jhone math 60
2 smith science 50
3 clark math 90
1 jhone science 80
3 clark science 56
1 jhone ecnomics 75
2 smith math 40
3 clark ecnomics 99
first I want to sort array like this
id name subject marks
1 jhone math 60
1 jhone science 80
1 jhone ecnomics 75
2 smith science 50
2 smith math 40
3 clark math 90
3 clark science 56
3 clark ecnomics 99
array.sort command working ok
now I want to concatenate these values and answer show like this
1,jhone,math 60,science 80,ecnomics 75
3,clark,math 90,science 56,ecnomics 99
Remember I'd like to not display content because id 2 have 2 subjects..his economics result is pending..so only show the above two lines in the result.
thanks in advance