Click here to Skip to main content
14,608,081 members
Rate this:
Please Sign up or sign in to vote.
See more:
i have some items in one form(item form) displayed in check boxes which i want to be shown (only the selected ones)in a data grid of another form(purchased items) sequentially. its that, if thr are 10 such items in the item form and i have selected only say 5 items, i want those 5 items to be shown sequentially in the data grid of the purchased items form.not all of the ten items.
is thr any way this could be achieved?

What I have tried:

i havent been able to try anything so far.
Posted
Updated 28-Jul-20 3:24am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Exactly how depends on the "relationship" between the two forms.
Have a look at these, one of them will fit your circumstances.
The form that creates an instance of another:
MyForm mf = new MyForm();
mf.Show();
Is the "parent", the other form is the "child".
(This doesn't imply any formal MDI relationship)

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[^]
   
Comments
achalake 28-Jul-20 23:46pm
   
@OriginalGriff the thing is in my item form ive already created a functionality where i click the total button which opens purchased items form and displays the total and subtot from the item form into the purchased items form using the constructor method u suggested. so my aim is for the item names that are checked to be shown in the data grid of the purchased items form at the same click of the total button. if i were to implement yur suggestion of the transmission of data article i wud be opening a different form without the earlier functionalilty . my aim is for both of those functionalities to occur simultaneously.
achalake 29-Jul-20 3:39am
   
@OriginalGriff i managed to find a solution thru yur article. thanks very much!!!
OriginalGriff 29-Jul-20 4:33am
   
You're welcome!

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100