c# - How to display Details records of Selected Master Record on Entity Framework? -
i'm new entity framework , trying learn basics through simple examples.
these 2 tables of columns:
customers_base:
cb_refno (primary key) cb_name etc..
orders:
or_refno (primary key) or_m_refno (foreign key) contacts_base table etc..
i have inserted sample data both tables , want accomplish view orders of a customer on datagridview.
i have bindingnavigator, contacts_basebindingsource , ordersbindingsource on crud.
my code:
contacts_basebindingsource.datasource = lobo.contacts_base.tolist(); bindingnavigator1.bindingsource = contacts_basebindingsource;
so when click next/previous buttons on bindingnavigator able view records on customers_base table. have ordersgridview display each order record each record on contacts_base?
thanks
Comments
Post a Comment