Let me start off by saying I'm not a programmer at all. I'm trying to learn some basic stuff though.
I'm using VS and SQL Server. I've setup my datasources. The basics of doing a "normal" datagridview isn't an issue for me because it's rather intuitive and simple. In this instance I'm totally lost.
I have two database tables, one row in each. I need to create a Datagridview with 5 columns and specified table column values as rows in the datagridview.
Database Table One Columns Example Info:
ID, Desc1, Desc2, Desc3, Desc4, Desc5, Other columns....
Database Table Two Columns Example Info:
ID, Tax1, Tax2, Tax3, Tax4, Tax5, Start1, Start2, Start3, Start4, Start5, End1, End2, End3, End4, End5, OtherColumns....
Tables are joined.
Columns in Datagridview:
Number - This would be autonumber
Description - Row info would come from Database Table One column values Desc1 through Desc5. One per row.
Tax - Row info would come from Database Table Two column values Tax1 through Tax5
Start - Row info would come from Database Table Two column values Start1 through Start5
End - Row info would come from Database Table Two column values End1 through End5
How I want the values displayed in the Datagridview:
NO, DESCRIPTION, TAX, START, END
1, Desc1, Tax1, Start1, End1
2, Desc2, Tax2, Start2, End2
3, Desc3, Tax3, Start3, End3
4, Desc4, Tax4, Start4, End4
5, Desc5, Tax5, Start5, End5
Unfortunately the table layouts cannot be changed as it links to other master tables. For example changing the columns to rows in the database table.
What I have tried:
I honestly don't know what the best way would be to achieve this as the data in the Datagridview for the columns should still be able to be changed and updated.
Any guidance in the right direction would be appreciated.