andrewmanuja
Well-known member
- Joined
- May 30, 2019
- Messages
- 75
- Programming Experience
- Beginner
Hi,
I got a table (Table1) which got few fields and among them are "costCentreID" which is the PK and the "costCentreName".
I got another table(Table2) which got some transaction related data (which got "costCentreID" as a field) and my requirement is to load the data, based on a selection criteria to a dataGridView .
However, I want to represent the "costCentreName" in the dataGridView.
What is the best method of accomplishing this task.
Can I create a function to load all the Table1 data into a DataTable() and replace all the "costCentreID" values by the "costCentreName"?
However, I am not so clear how to do the above said suggestion.
Appreciate your feedback in advance.
Thank you.
Kind regards,
Andrew
I got a table (Table1) which got few fields and among them are "costCentreID" which is the PK and the "costCentreName".
I got another table(Table2) which got some transaction related data (which got "costCentreID" as a field) and my requirement is to load the data, based on a selection criteria to a dataGridView .
However, I want to represent the "costCentreName" in the dataGridView.
What is the best method of accomplishing this task.
Can I create a function to load all the Table1 data into a DataTable() and replace all the "costCentreID" values by the "costCentreName"?
However, I am not so clear how to do the above said suggestion.
Appreciate your feedback in advance.
Thank you.
Kind regards,
Andrew