Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form contains a datagridview to show product details. There're two tables called as "LOCATION_PRODUCT" and "TARGET_PRODUCT". Initially , product codes are retrieved by "LOCATION_PRODUCT" table and displays inside the DataGridView. Datagridview contain 13 columns as follows,

TARGET_PROD_ID, TARGET_JAN, TARGET_FEB, TARGET_MAR, TARGET_APR, TARGET_MAY, TARGET_JUN, TARGET_JUL, TARGET_AUG, TARGET_SEP, TARGET_OCT, TARGET_NOV,
TARGET_DEC


What I need to know is, if the product code is exist in the "TARGET_PRODUCT" table,
How to get the row which contain the product code and replace it in datagridview.
Please help me to sort out this issue
Posted
Comments
PIEBALDconsult 24-Nov-14 22:41pm    
DataGridViews (awful as they are) are capable of displaying parent-child tables. I forget how, because I haven't used one in nearly ten years.
DamithSL 24-Nov-14 22:51pm    
Hirindu, can improve the question with what are the columns in each table and which columns you need to show in your datagridview?
Harindu Karunatillake 27-Nov-14 4:45am    
I Want to show TARGET_PROD_ID, TARGET_JAN, TARGET_FEB, TARGET_MAR, TARGET_APR, TARGET_MAY, TARGET_JUN, TARGET_JUL, TARGET_AUG, TARGET_SEP, TARGET_OCT, TARGET_NOV,
TARGET_DEC

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900