I have used two entity classes for binding values into DataGridView
. One is Estimates and Companies.
- Estimates has columns such as "Id, Estimate Number, Estimate Amount, CompanyId".
- Companies has columns such as "Id, Company Name, Address"
I have created two BindingSource
such as EstimateBindingSource
and CompanyBindingSource
.
CompanyBindingSource
has DataSource asEstimateBindingSource
and DataMember asEstimates
EstimateBindingSource
has DataSource asEstimates
entity Class and no DataMember defined.
I have bound the EstimateBindingSource
into the DataGridView
using grid DataSource
.
Here, I need to show Estimate number, Estimate Amount and Company Name in DataGridView.. I have't able to achieve this.
Note: I do not do any code behind logic to do this.. Need to achieve this only using design.