Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have 5 forms, and I want to share data from the datagridview (when clicked on cell) through to all other forms but when they're opened as there is a specific order to be followed. Is this possible?

What I have tried:

listing all forms to be shared with
Posted
Updated 22-Mar-18 8:05am
v2

Yes - you go via the "master" form - the one that causes the others to be opened.
Exactly how depends on where the DataGridView is, but one of these should help you:
Transferring information between two forms, Part 1: Parent to Child[^]
Transferring information between two forms, Part 2: Child to Parent[^]
Transferring information between two forms, Part 3: Child to Child[^]
 
Share this answer
 
See example here: How to pass datagridview values from form1 to form 2 in C#[^]
This example is for a BindingList but you can use other variables too of course ...
 
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