Beata, thank you!
Your version "Nie wszystkie ćwiczenia gramatyczne na kursach językowych były nudne" is exactly what I want to say. I try to say something like "I can't do grammar exercises for a long time by my own" ( I suppose "Ale nie mogę uczyć się gramatyki dłużej bez nauczyciela" is the wrong way to say it, but I have no other ideas about it).