In a stern or forbidding manner. He grimly accepted the difficult task ahead.
In a way that is serious or gloomy. She grimly nodded, understanding the gravity of the situation.
With a sense of determination despite adversity. He grimly pushed forward, refusing to give up.