Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I want to pass DataGridView cell values from one Form to another.Here the DataGridView is binding from Data Base using joins.My Table consists of 10 columns but I want to Bind only 5 columns to the DGV and when I double click on cell in DGV,based on Id I want to get all values to the TextBoxes(5 cell values from DGV and 5 columns from Data Base). I am getting 5 values from DGV but How to get remaining 5 values from Data Base.
How to solve this problem??
Thanks as Advance..
Posted
Updated 2-Sep-15 19:27pm
v3
Comments
Sergey Alexandrovich Kryukov 3-Sep-15 1:16am    
If this is System.Windows.Forms, what do you mean by "page"? What's the problem?
—SA
Kanaparthi Sureshma Reddy 3-Sep-15 1:28am    
Sorry,It's not Page it is a Form.

1 solution

First of all, consider passing data not from control to control, but from data layer to control.

If you still want to pass cell data from one form to another (please see my comment to the question; I hope your question is actually about passing data from one to another form), please see my article Many Questions Answered at Once — Collaboration between Windows Forms or WPF Windows[^].

—SA
 
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