This allows you to line-up all your beats, notes and events to the same time or beat. Depending on the zoom level, more or less lines will show (but they are still there in the background). All the 'editor' windows in FL Studio, the Piano roll, Playlist and Event Editor have a background 'grid' that represents beats and or time.
Fl Studio Piano Roll Snap To Grid Video.