i m new in 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..okk
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 id 2 not display contenate bcz id 2 have 2 subjects..his ecnomics result is pending..so only show this result
1,jhone,math 60,science 80,ecnomics 75
3,clark,math 90,science 56,ecnomics 99
please solve my problem
thanks in advance