First of all, make sure that the soldier actually got some kind of grenades in their loadout. When they do, you can throw grenades with the grenade icon in the HUD:
- (optional) right-click on the picture with the grenade to switch the type of grenade you want to throw. Select the type with left-click.
- Left-click on the grenade picture to enter throw mode.
- Move cursor on the map location where you want to throw it.
- Check if you have enough time units left. When the TU number next to the cursor is red, then you won't be able to throw it. Throwing grenades requires comparably many time units.
- (optional) laugh manically and shout "Die, alien scum!"
- left-click to throw.
- (not optional) Curse, because the grenade flew against an obstacle and killed your own soldier.