Filling grid

Hi, all!

I have a question about grids, which are used in design of the form.

I have 2 forms. First form A using args sends the necessary id to the form B.

Form B using recieved id parameter makes a query to the database.

Afterwards I am reuired to fill the grid with the query result.

Grid refers to the datasource and shows al information. I need to filter it and show only query result.

Thanks in advance!