I have a datatable which contains following data as
SrNo Roll Name
1 1 XYZ
99 45 ABC
150 120 POQ
10 9 RTY
190 180 MNZ
According to the range of of srNo the output should be derived & there should be a additional column Result should be added & according to the range the result should be filled with 0 or 1(if range is between 0-100 then result should be 0 if range is between 100-200 then result should be 1)
So the output will be
SrNo Roll Name Result
1 1 XYZ 0
99 45 ABC 0
10 9 RTY 0
150 120 POQ 1
190 180 MNZ 1
I want to implement through linq
Please suggest any!!!
Thanks
Try this: