Hello.
I have searched long and hard for an answer to this problem, to no avail!
First off, let me say that I am a "hobbyist" and enjoy tinkering with Visual Basic. All my "knowledge" is scoured from books and the internet, so my coding is probably horrendous...
I am using Visual Basic 2010 Express and have a very simple requirement.
I have an XML file containing a parent element "eventdata", which then contains two complex elements "eventdetails" and "entrant".
"eventdetails" is made up of two elements, "eventname" and "eventdate".
"entrant" is made up of several elements, such as "surname", "firstname", "dateofbirth" etc.
What I am trying to do is read the "eventdetails" element from the XML and display it in a datagridview. I am doing this as a dummy run, prior to working with the "entrant" element, as at the moment the only the "eventdetails" element is populated in the XML file. Ultimately, it is a list of "entrants" that I want to display in this datagridview.
I have added a dataset called "eventdata" to the form with the datagridview and also "eventdatabindingsource", where the datasource is "eventdata" and the datamember is "eventdetails".
When I run the form, with the XML file loaded, the column headers appear, but no data??
Can someone tell me what I am doing wrong please?
Thanks very much.
Tim
I have searched long and hard for an answer to this problem, to no avail!
First off, let me say that I am a "hobbyist" and enjoy tinkering with Visual Basic. All my "knowledge" is scoured from books and the internet, so my coding is probably horrendous...
I am using Visual Basic 2010 Express and have a very simple requirement.
I have an XML file containing a parent element "eventdata", which then contains two complex elements "eventdetails" and "entrant".
"eventdetails" is made up of two elements, "eventname" and "eventdate".
"entrant" is made up of several elements, such as "surname", "firstname", "dateofbirth" etc.
What I am trying to do is read the "eventdetails" element from the XML and display it in a datagridview. I am doing this as a dummy run, prior to working with the "entrant" element, as at the moment the only the "eventdetails" element is populated in the XML file. Ultimately, it is a list of "entrants" that I want to display in this datagridview.
I have added a dataset called "eventdata" to the form with the datagridview and also "eventdatabindingsource", where the datasource is "eventdata" and the datamember is "eventdetails".
When I run the form, with the XML file loaded, the column headers appear, but no data??
Can someone tell me what I am doing wrong please?
Thanks very much.
Tim