Click here to Skip to main content
15,921,548 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
i am trying to do the following.
when the user clicks a button on form2, the text of the textbox in form2 should be transfered to row/colomn in the datagrid in form1.
thanks
Posted

1 solution

Assuming you know how to add the data to the data grid, then pass the data from form2 to form1 better make use of delegate as shown here.

Use of delegates for form reusability- Dependency injection principle[^]
 
Share this answer
 
Comments
vlad781 26-Feb-11 0:22am    
Sorry, I do not understand how to use delegates

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