andrewmanuja
Well-known member
- Joined
- May 30, 2019
- Messages
- 75
- Programming Experience
- Beginner
Hi All,
I am trying to get my head around how the 3-layer architecture works using a sample example.
I am able to get the data on to the Presentation Layer, Form_Load event.
Please refer my below code,
ClassBusinessLayer objLogic is created to access the data from the Business Layer through an object.
When I add a breakpoint at,
I am getting the results as follows,
However, when I run the code, I am not getting data populated in to the dataGridView named " DataGridViewProducts".
Appreciate your valuable feedback please.
Thank you.
Kind regards,
Andrew
I am trying to get my head around how the 3-layer architecture works using a sample example.
I am able to get the data on to the Presentation Layer, Form_Load event.
Please refer my below code,
C#:
ClassBusinessLayer objLogic;
private void Product_Details_Load(object sender, EventArgs e)
{
objLogic = new ClassBusinessLayer();
dataGridViewProducts.DataSource = objLogic.LoadProduct();
}
When I add a breakpoint at,
C#:
dataGridViewProducts.DataSource = objLogic.LoadProduct();
However, when I run the code, I am not getting data populated in to the dataGridView named " DataGridViewProducts".
Appreciate your valuable feedback please.
Thank you.
Kind regards,
Andrew
Last edited: