hi, i am new to vb.net programming, my question is, i have 3 tables named as
Orders | OrderDetails | Products
Orders have PK_OrdersID and OrderDetails have FK_OrdersID of Orders so they are related with one to many relationship
Products have PK_ProductID and OrderDetails have FK_ProductID of Products they are also related with one to many relationship
OrderDetails is bound to datagridview and it shows columns as follow
DetailID - OrdersID - ProductID - Qutantity - Total
what i want is, i want to add 2 more column into OrderDetails Datagridview as ProductName and ProductPrice
and when i enter ProductID then ProductName and ProductPrice should fill up
i hope i make it understandable also my english is not good.
Orders | OrderDetails | Products
Orders have PK_OrdersID and OrderDetails have FK_OrdersID of Orders so they are related with one to many relationship
Products have PK_ProductID and OrderDetails have FK_ProductID of Products they are also related with one to many relationship
OrderDetails is bound to datagridview and it shows columns as follow
DetailID - OrdersID - ProductID - Qutantity - Total
what i want is, i want to add 2 more column into OrderDetails Datagridview as ProductName and ProductPrice
and when i enter ProductID then ProductName and ProductPrice should fill up
i hope i make it understandable also my english is not good.