Quantcast
Viewing all articles
Browse latest Browse all 12583

DataGridview for multiple rows with same unique ID

Hie Guys. I have two tables allowances and allowances_trans. 

Allowances table :

ID      Description 

1        Fuel

2        Housing

Allowances_trans

EC     Allowance_ID      Amount    Date  

1       1                         10             01/01/14

1       2                         13             01/01/14

2       1                         9              01/01/14

2       2                         0              01/01/14

3       1                         23           01/01/14

3       2                         10           01/01/14

I want to create a DataGridView  form which shows information as follows:-

EC     Name         Surname     Fuel     Housing

1       John            Mark          10        13

2       Kate            Mark            9          0

3       Kevin          Fred           23        10

I would want the information to be updated as well from the DataGridView to the database. Any help is greatly appreciated.  


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>