andrewmanuja
Well-known member
- Joined
- May 30, 2019
- Messages
- 75
- Programming Experience
- Beginner
Hi All,
I got three tables as shown below;
tbl_Product : ProdID, ProdName, Price
tbl_Department : DepartmentID, DepartmentName
tbl_Allocation : ProdID, DepartmentID
The requirement is, the products has to be allocated accordingly to the different departments (assume there are 10 products in total) and time to time I should be able to manage the products assigned to the departments.
Assume I have already assigned 3 products to the "Department A", and now I want to add a new product to the same department.
Thus, when I load the data for the "Department A", I need to view all the 10 products and importantly, a tick in front of the selected 3 products for the respective department.
Note
Please find the attached sample datagridview I am using in this example.
As a result, I got 7 products available to assign to the "Department A" at the moment.
Appreciate your feedback on how to accomplish this task.
Thank you.
Kind regards,
Andrew
I got three tables as shown below;
tbl_Product : ProdID, ProdName, Price
tbl_Department : DepartmentID, DepartmentName
tbl_Allocation : ProdID, DepartmentID
The requirement is, the products has to be allocated accordingly to the different departments (assume there are 10 products in total) and time to time I should be able to manage the products assigned to the departments.
Assume I have already assigned 3 products to the "Department A", and now I want to add a new product to the same department.
Thus, when I load the data for the "Department A", I need to view all the 10 products and importantly, a tick in front of the selected 3 products for the respective department.
Note
Please find the attached sample datagridview I am using in this example.
As a result, I got 7 products available to assign to the "Department A" at the moment.
Appreciate your feedback on how to accomplish this task.
Thank you.
Kind regards,
Andrew