Search First, Then Cgridview

How can I show a page with a search function first, according to some criteria, then show the results in cgridview.

The cgridview does not show up at the begining. Thanks!