Grit your  teeth

Meaning: To deal with a difficult situation in a determined way.

Example: I hate going to the gym, But I just grit my teeth and try to get through it.