I have one task about XML file. First I need to load one xml file, then depending on the value of Zip the information from xml file need to be divided into 2 datagridviews. The xml file looks like this:
-
-
Feng Huang Street
-
Lang Ya Street
-
Sai Di Street
For example: when Zip <200 all the information goes to datagridview1. when Zip>200, the information goes to datagridview 2. ...so in this case in datagridview1 there should have all the information from NO3, datagridview2 should have information from No1 and NO2...
Can anyone help me? thanks a lot..I tried long time, but nothing works so far...Thanks
Emma EmmaPosted May 18, 2013, 1:14 AM
I tried your code, but there has one error:
----Column 'ID' does not belong to table ExternalCommunication.
what does this mean? In my XML file, ID is the fourth layer node...
Have you ever met this before?
Thanks so much!
Pankaj PandeyPosted May 17, 2013, 7:55 AM
here is a code to solve your problem as given requirment.
first you upload your sml file and store it in application folder.
then try this code, it will work.
add using System.Data name space.,,here your xml file will filter in two tables, now show each one to diffrent grid view.
if it is helpful then mark as answered.
for any query you can see my blogs related to xml