I am kinda new with Using XML's with datagridviews. My problem is I have 2 datagrids, my first datagrid table would contain the following data also from the XML File.
empl_num | Name
1 | Carl
2 | Mark
3 | Tanner
also, i have this XML file containing:
<Address>
<Data1>
<employee>
<empl_num>1</empl_num>
<name>Carl</name>
<empl_num>2</empl_num>
<name>Mark</name>
<empl_num>3</empl_num>
<name>Tanner</name>
</employee>
</Data1>
<Data2>
<Person>
<EMPL_NUM>>100</EMPL_NUM>
<NAME>Carl</NAME>
<ID_NUM>1</ID_NUM>
<IsRequired>0</IsRequired>
</Person>
<Person>
<EMPL_NUM>200</EMPL_NUM>
<NAME>Mark</NAME>
<ID_NUM>2</ID_NUM>
<IsRequired>0</IsRequired>
</Person>
<Person>
<EMPL_NUM>300</EMPL_NUM>
<NAME>Tanner</NAME>
<ID_NUM>3</ID_NUM>
<IsRequired>0</IsRequired>
</Person>
</Data2>
</Address>
May I ask a way on whenever i click the name carl from the datagridview table, it gets the xml data based on the ID_NUM and display it to the second datagridview table.(desired output shown example below).
example:
- datagridview1- -datagridview2-
empl_num | Name EMPL_NUM | Name | ID_NUM | IsRequired
1 | Carl 100 | Carl | 1 | 0
2 | Mark
3 | Tanner