|
-
Jun 16th, 2010, 02:08 PM
#1
Thread Starter
Lively Member
Confused on how datagridviews work. :(
I want to make a database of all the xbox live arcade arcade games on the xbox live marketplace, I need to parse an xml file and add the needed data from the xml node into a datagridview.
Here is the xml file i need to use to grab links and other data about the game:
http://updates.xboxmodder.com/updates.xml
Being the noob I am it took me about 6 hours to figure out how xml works and to write some code for what i need to do.
Here is what i came up with:
Code:
'for grabbing the name of the update
Public Sub updatename()
Dim xmldoc As New XmlDataDocument()
Dim xmlnode As XmlNodeList
Dim i As Integer
Dim str As String
xmldoc.Load("http://updates.xboxmodder.com/updates.xml")
xmlnode = xmldoc.GetElementsByTagName("file")
For i = 0 To xmlnode.Count - 1
xmlnode(i).ChildNodes.Item(0).InnerText.Trim()
str = xmlnode(i).ChildNodes.Item(1).InnerText.Trim()
DataGridView1.Rows.Add(str)
Next
end sub
That code works fine.
Now when i add another column to the datagridview called "update size" i want to know how to add the grabbed data from another sub i made to the new column.
What would the code be for adding the strings for the new sub into the seconds column? the first was, DataGridView1.Rows.Add(str)" . So what would the second be ?
Also another question i have is how do i put an image in an imagecolumn by a web link, not a local picture.
Please go easy on me, i'm still learning and havent even started my programming classes yet , just trying to prepare for it and learn by making programs for my needs.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|