Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. XML problems

XML problems

Scheduled Pinned Locked Moved XML / XSL
helpxmltutorialquestion
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kurt19
    wrote on last edited by
    #1

    Hi everyone, Im a newbie in xml, anyone could help to resolve my problem? I have one xml file and i was able to fill my two datagrid (grdColor and grdSize) using my PO.xml data.Now, my problem is i would like to filter my data in grdSize depending to the data in the grdColor.Like for example, in the grdColor i have two rows, the first row has a ColorID: 1 and the second row is ColorID:2, now , when the mouse cursor pointing to the first row which ColorID is 1 in grdSize it only appear thus data that has ColorID:1. Thanks in advance.

    try and try until you success..

    L 1 Reply Last reply
    0
    • K kurt19

      Hi everyone, Im a newbie in xml, anyone could help to resolve my problem? I have one xml file and i was able to fill my two datagrid (grdColor and grdSize) using my PO.xml data.Now, my problem is i would like to filter my data in grdSize depending to the data in the grdColor.Like for example, in the grdColor i have two rows, the first row has a ColorID: 1 and the second row is ColorID:2, now , when the mouse cursor pointing to the first row which ColorID is 1 in grdSize it only appear thus data that has ColorID:1. Thanks in advance.

      try and try until you success..

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      kurt19 wrote:

      I have one xml file and i was able to fill my two datagrid (grdColor and grdSize) using my PO.xml data.

      Ummm..... how?

      K 1 Reply Last reply
      0
      • L led mike

        kurt19 wrote:

        I have one xml file and i was able to fill my two datagrid (grdColor and grdSize) using my PO.xml data.

        Ummm..... how?

        K Offline
        K Offline
        kurt19
        wrote on last edited by
        #3

        that's my problem right now. Hope someone can help me this problem.

        try and try until you success..

        G 1 Reply Last reply
        0
        • K kurt19

          that's my problem right now. Hope someone can help me this problem.

          try and try until you success..

          G Offline
          G Offline
          George L Jackson
          wrote on last edited by
          #4

          It appears you are not having a problem with XML but with an ASP.NET Datagrid. :confused:

          "We make a living by what we get, we make a life by what we give." --Winston Churchill

          K 1 Reply Last reply
          0
          • G George L Jackson

            It appears you are not having a problem with XML but with an ASP.NET Datagrid. :confused:

            "We make a living by what we get, we make a life by what we give." --Winston Churchill

            K Offline
            K Offline
            kurt19
            wrote on last edited by
            #5

            My problem is I could not filter the data appears in my second datagrid. Because when i load my xml file it will simply populate the two datagrid. My first datagrid is consist of Parent nodes while my second datagrid are the child nodes. What i want to do is when i load the xml file the first datagrid will display all data while the display data in the second datagrid depends on the first grid.HOw could I filter the data in the second grid?

            try and try until you success..

            G 1 Reply Last reply
            0
            • K kurt19

              My problem is I could not filter the data appears in my second datagrid. Because when i load my xml file it will simply populate the two datagrid. My first datagrid is consist of Parent nodes while my second datagrid are the child nodes. What i want to do is when i load the xml file the first datagrid will display all data while the display data in the second datagrid depends on the first grid.HOw could I filter the data in the second grid?

              try and try until you success..

              G Offline
              G Offline
              George L Jackson
              wrote on last edited by
              #6

              I can think of two ways of filtering your data. First, you can filter the child XML document based on the parent XML document using XSLT, and binding the resulting XML document to the child Datagrid. Second, you can place both XML documents in the same Dataset into their corresponding Datatables. You create a DataRelation and a DataView to achieve your desired results. You can find articles on Code Project to get you started or you can Google for more resources and examples. George

              "We make a living by what we get, we make a life by what we give." --Winston Churchill

              K 1 Reply Last reply
              0
              • G George L Jackson

                I can think of two ways of filtering your data. First, you can filter the child XML document based on the parent XML document using XSLT, and binding the resulting XML document to the child Datagrid. Second, you can place both XML documents in the same Dataset into their corresponding Datatables. You create a DataRelation and a DataView to achieve your desired results. You can find articles on Code Project to get you started or you can Google for more resources and examples. George

                "We make a living by what we get, we make a life by what we give." --Winston Churchill

                K Offline
                K Offline
                kurt19
                wrote on last edited by
                #7

                Hi george, Thanks, but I have only one XML file. How could I manipulate this kind of proble. Can you give me an example code that related to my problem. Thanks in advance. Regards, kurt

                try and try until you success..

                G 1 Reply Last reply
                0
                • K kurt19

                  Hi george, Thanks, but I have only one XML file. How could I manipulate this kind of proble. Can you give me an example code that related to my problem. Thanks in advance. Regards, kurt

                  try and try until you success..

                  G Offline
                  G Offline
                  George L Jackson
                  wrote on last edited by
                  #8

                  As I said, your problem is with DataGrids. This is the XML/XSL forum. In your case, your XML document is just a data source and you want to display it in a certain way. I guess you want a Master-Detail type report. So, look on Code Project and Google for your example code. I gave you keys to help your search. Also, if using a DataGrid is to complicated for you. You know you can create your own table and post it to the ASP.NET page.

                  "We make a living by what we get, we make a life by what we give." --Winston Churchill

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups