I would never let a silicon chip check my grammar - how can it know what I want to say/express etc?!! Best to invest in a good grammar book, keep it by your PC and look up anything you're in doubt about.
If it is Microsoft Word you are using, when you do a spelling and grammar check as stated by La Diva, anything underlined in red is to do with spelling and anything underlined in green is to do with grammar.