Skip to content

Write EID in Datagridview cel fill automatically another cel

asmita patil

Asked Jan 23, 2015, 1:31 AM EST2 answers
Share
LinkedInX
my question is

in datagridview enter first cell of E_ID and in anoter cell of datagridview fill automatically that related E_ID data record.
means in rest of cells fetch data from different tables of database

i know that it is done by query but dont know how to write.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Zaid Ansari
    0
    Hi...
            Use inner join first table Id e_id  and anther table id r_Id understand but data type must be same 


    Example ...
     Select e.name' e.address,r.mobile from 1tablename
    e innerjoin 2tablename r  on e.e_Id = r.r_id 


    Understand dear 
    0
  • 0
    thank u for your reply ..
    again i need your favor...
            where to write this and how to relate datagridview

    because i am directly insert data in database through datagrid view and in that while entering employee id in first cell... that related EID data is fill automatically from another tables in another cell of datagridview. so user can easely fillup data in another table of database

    if u again not understand my problem then ask me....



     Thank you.
    0