Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am very new to c# and visual studio

In my winform application , i have two table as data source :

Entry form

Master rejection reason

Now i need to fetch the rejection reason from one table and save the same on the entry form table ,Now when i bind these combo box to the rejreason table by creating a binding source , all the three combo boxes are updating with same value , and irrespective of the ID number where my entry is doing it is starting to save from the first row only , for example if Idon't enter the rej reason for first two rows and if i enter the rej reason for third row , the data is getting saved for 1st row only , kindly help me how to solve this , and kindly ask me if anything else is needed..

the design can be seen in attached images:
https://i.stack.imgur.com/BIqyD.png[^]

https://i.stack.imgur.com/J4WZT.png[^]

https://i.stack.imgur.com/S18AX.png[^]

What I have tried:

i tried making a seprate data source for the combo box but all the three combboox are taking the same value
Posted
Updated 18-Jan-21 7:16am
Comments
[no name] 11-Dec-20 14:36pm    
Why 3 reasons? It looks like a joke. Pick one. Multiple choices make people unhappy. Creating problems where there shouldn't be any. And a "reason" for what? Sleeping in?
Member 14898617 11-Dec-20 23:08pm    
Hello ...Thank you for your response but kindly don't judge before knowing full...in our process the product might get rejected for variety of reasons , and a single product can contain up to three defects ..hence three combo box are needed to fill in the data for the three columns sometimes it will one or two or three or nil based on the product status. Any idea how to do it?
[no name] 12-Dec-20 12:59pm    
You show no code. If they all "act" the same, then your bindings "are the same". How is anybody on this end able to "see" that? And if you can have "3+ rejection issues", you've got a quality assurance problem and your "3 reasons" won't help.

1 solution

Hi just make the data source of combobox using the data table clone method.
This will assign separate data source to each combobox.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900