Her is an image showing a the table i have, b the grid i need to display.
opps cant post image. ill try to explain. My table have four colums.
- Project Number(String)
- ItemNumber(String)
- Location(String)
- Qty.(Real).
My grid need to look like this.
- ProjectNumber
- ItemNumber
- QtyMain.
- QtyOther.
I Need to write a linq query Grouping evry line so i will se 1 Line pr Project/ItemNumber combination summing qty into 2 differetn colums 1 showing to qty where location is main and 1 showing the qty where location is not (!=) main. Can linq do this for me, or how can thsi be done?
Resulting in: