Click here to Skip to main content
15,897,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCount records using a wildcard... Pin
CCG318-Jun-08 4:07
CCG318-Jun-08 4:07 
AnswerRe: Count records using a wildcard... Pin
Noctris18-Jun-08 5:53
Noctris18-Jun-08 5:53 
GeneralRe: Count records using a wildcard... Pin
CCG318-Jun-08 6:15
CCG318-Jun-08 6:15 
GeneralRe: Count records using a wildcard... Pin
Ashfield18-Jun-08 9:14
Ashfield18-Jun-08 9:14 
GeneralRe: Count records using a wildcard... Pin
CCG318-Jun-08 9:24
CCG318-Jun-08 9:24 
GeneralRe: Count records using a wildcard... Pin
Noctris18-Jun-08 22:33
Noctris18-Jun-08 22:33 
GeneralRe: Count records using a wildcard... Pin
CCG319-Jun-08 2:09
CCG319-Jun-08 2:09 
QuestionXML help please - never worked with this structure before Pin
penguin500018-Jun-08 3:50
penguin500018-Jun-08 3:50 
Hello,
I've been given a sample XML file in a structure that I haven't handled in VB.NET before and would appreciate some guidance. The structure is as follows:

<Interface CompanyCode="COMP01" CreatedOn="2007-05-27T10:20:00" CreatedBy="PRODUCT" CreatorKey="PROD" SequenceNo="1" CreatorReference="NEWPRODUCT"><br />
  <Product ProductCode="P1"><br />
    <Description>Product 1 Description</Description><br />
  </Product><br />
  <Product ProductCode="P2"><br />
    <Description>Product 2 Description</Description><br />
    <Value EffectiveDate="2006-04-01"><br />
      <Price>5.50</Price><br />
      <Currency>GB</Currency><br />
    </Value><br />
  </Product><br />
  <Product ProductCode="P3"><br />
    <Description>Product 3 Description</Description><br />
  </Product><br />
</Interface>


When I read the xml file in with ...

Dim ds As DataSet = New DataSet("dataset")<br />
<br />
ds.ReadXml("prod2.xml")<br />
<br />
With DataGridView1<br />
        .DataSource = ds<br />
        .DataMember = ds.Tables(2).TableName<br />
End With


... I can see that I've got 3 x tables ... "Interface", "Product", "Value".

What I'm wondering is how do I get the "Value" table linked to "Product"? I was expecting (rightly or wrongly) to see some inherited values from product displayed in my DataGridView. Looking at the structure of the XML file, it seems to imply that there should be some inheritance???
AnswerRe: XML help please - never worked with this structure before Pin
Johan Hakkesteegt19-Jun-08 0:07
Johan Hakkesteegt19-Jun-08 0:07 
QuestionData Access Layer Pin
Fahim A18-Jun-08 3:32
Fahim A18-Jun-08 3:32 
AnswerRe: Data Access Layer Pin
Mohammad Al Hoss18-Jun-08 4:53
Mohammad Al Hoss18-Jun-08 4:53 
AnswerRe: Data Access Layer Pin
Fahim A19-Jun-08 12:58
Fahim A19-Jun-08 12:58 
QuestionDatagridview columns Pin
Jay Royall18-Jun-08 2:26
Jay Royall18-Jun-08 2:26 
AnswerRe: Datagridview columns Pin
Johan Hakkesteegt18-Jun-08 23:55
Johan Hakkesteegt18-Jun-08 23:55 
GeneralRe: Datagridview columns Pin
Jay Royall19-Jun-08 1:32
Jay Royall19-Jun-08 1:32 
Questionhow to read file Pin
Ebube18-Jun-08 2:21
Ebube18-Jun-08 2:21 
AnswerRe: how to read file Pin
Noctris18-Jun-08 3:11
Noctris18-Jun-08 3:11 
AnswerRe: how to read file Pin
Ashfield18-Jun-08 3:39
Ashfield18-Jun-08 3:39 
GeneralRe: how to read file Pin
Ebube18-Jun-08 4:57
Ebube18-Jun-08 4:57 
GeneralRe: how to read file Pin
Ashfield18-Jun-08 5:25
Ashfield18-Jun-08 5:25 
General0bject refrence exception Pin
Ebube18-Jun-08 7:13
Ebube18-Jun-08 7:13 
GeneralRe: 0bject refrence exception Pin
Ashfield18-Jun-08 8:56
Ashfield18-Jun-08 8:56 
QuestionDatagridview combobox column set selectedvalue Pin
Member 344963618-Jun-08 2:11
Member 344963618-Jun-08 2:11 
AnswerRe: Datagridview combobox column set selectedvalue Pin
Jay Royall18-Jun-08 2:21
Jay Royall18-Jun-08 2:21 
GeneralRe: Datagridview combobox column set selectedvalue Pin
Member 344963618-Jun-08 2:25
Member 344963618-Jun-08 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.