Translation:My grandmother had an operation on the heart last year.
"At the heart" would be the German way to express it, "in the heart" is Danish, and in English you'd say "on/of the heart". Prepositions are really difficult sometimes. :´)
I wouldn't worry too much, though. Most English speakers would simply say "heart surgery", and in Danish it's sometimes hjerteoperation.