XML problems
-
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..
-
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..
-
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?
-
that's my problem right now. Hope someone can help me this problem.
try and try until you success..
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
-
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
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..
-
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..
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
-
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
-
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..
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