How do i check to see if a msflexgrid control has data in it if i want to clear it?????? or to clear it automatically

i know how to clear it ,but can't figure out how to determine if it's empty??