Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

display data into datagridview from foreign key table through id from primary key table in c#

$
0
0

Hi everyone

Can anyone help me, to resolve this issue below?

I have two tables in Sql Server, In first customers table the fields are CustomerID, CustomerName and Address

and Second table customerPaymentDetails the Foreign key table in which columns are ID, CustomerID as foreign key, dateOfPayment, amount

table name are  = customers and customerPaymentDetails 

Now I want to display foreign key table data on the c# form, using combo box in which customerName is taken from customers table then it should display the foreign key related data in DataGridView by selecting customerName from combo box.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>