This example shows how you can invoke the Query Builder in a WinForms application.
Click the Run Query Builder button on the form to invoke the Query Builder. After you add a new query and close the Query Builder window, click Fill to populate the Grid Control with data from the query.