On May 30, 3:54 pm, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.com> wrote:
> > I have three datatables in my dataset firstly a products then a
> > stocklink then a stock table. Now i have linked products table to a
[quoted text clipped - 8 lines]
>
> and your question is?
Is that i cant display all the stock items linked to a product
Cdude - 30 May 2008 15:08 GMT
example my product code is 22
in the stocklink table is prodcode;stockcode;qty
22 8888 1
22 9999 2
in the stock table code; desc ;qty
8888 item1 12
9999 item2 10
now when i select product with code 22 i want to display item1 and
item2 in a grid
Cdude - 30 May 2008 15:10 GMT
How do i display them all
Ignacio Machin ( .NET/ C# MVP ) - 30 May 2008 16:15 GMT
> How do i display them all
display them where?
You can use several controls for it, like a grid, a tree, etc
also is this a web or a win app?
Ignacio Machin ( .NET/ C# MVP ) - 30 May 2008 16:16 GMT
> On May 30, 3:54 pm, "Ignacio Machin ( .NET/ C# MVP )"
>
[quoted text clipped - 14 lines]
>
> Is that i cant display all the stock items linked to a product
very easy, if you have a FK relationship you can use
DataRow.GetChildRows()
if not you can create a dataview of the child table