Captchasss2C6D
New Member
I'm trying to wrap my head around this issue and it may be related to XML formatting.I have an XML file setup like the one below (With 10+ RadioTypes) and a variable amount of features per RadioType.\[code\]<Root> <RadioType> BXG7000 <Feature> Feature1 /Feature> <Feature> Feature2 /Feature> <Feature> Feature3 /Feature> </RadioType> <RadioType> BXG5000 <Feature> Feature1 </Feature> <Feature> Feature2 </Feature> <Feature> Feature3 </Feature> <Feature> Feature5 </Feature> </RadioType> </Root> \[/code\]What I am trying to do is Read the XML File\[code\]dsFeatureMatrix = New DataSet()dsFeatureMatrix.ReadXml(filePath)\[/code\]And then populate the DataGridView1 with the information (for debugging purposes only) since I can't seem to use the information in the DataSet at all. What I THOUGHT would happen was I would be creating different tables per RadioTypeand I could access them via the first example.FIRST EXAMPLE\[code\]datagridview1.datasource = dsFeatureMatrix.tables("BXG7000")datagridview1.datamember = "Feature"\[/code\]Where I was expecting my DataGrid to have 2 Columns listing all the features based on the supplied "RadioType" matching what's behind the the RadioType tag.Instead when I inspect my DataSet via BreakPoint I see two tables (RadioType and Feature).RadioType Table Feature TableRadioType_ID Feature_Text RadioType_ID0 Feature1 01 Feature2 0 ... Feature1 1 Feature2 1 ...SECOND EXAMPLEIf I change my datasource to feature \[code\]datagridview1.datasource = dsFeatureMatrix.Tables("Feature")\[/code\]I see ALL the features regardless of the defined RadioType in the XML file without the RadioType_ID column. Feature_TextFeature1Feature2Feature3...Feature1Feature2MY QUESTION How can I manipulate the first example to allow me to populate a datagridview/checkedlistbox with the Data Pertaining only to the selected or provided RadioType by dynamically binding the data OR is it an issue with improper XML formatting for the intended result?Which brings me to my second question: why is the \[code\]RadioType_ID\[/code\] represented as an integer instead of the STRING (I.e. \[code\]BXG7000\[/code\]) I have written in the XML file?All my datasets are untyped. I'm so confused.