I have a gridview and sqldatasource connected to each other

When I try to modify the SqlDataSource by changing it from ( specify columns from a table or view ) to ( specify a custom SQL statement) , the gridview disappears!

can someone explain to me why and how to fix it ?