DataGridView for evry id show other datagrid view
<p>I am making little program and now made a data grid view which is showing from my database all <code>Project</code>. In database i have following tables <code>Project</code>, <code>Category</code>, <code>Job</code>. Now i want thath when user click in one line it will show new form with data grid view which will show Categoryes which are connected to Project. I know thath i should just drop from Data Sources but i cant because i have intermediate table. I already have SQL Query how i get the info from the target (Category).</p>

<pre><code>SELECT c.*
FROM Kategorija c
INNER JOIN Project_Category pc on pc.cId = c.cId
INNER JOIN Project p on pc.pId = p.pId
</code></pre>

<p>So pId should be input parameter.</p>

<p>Thanks for any suggestion and help!</p>
