Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- invalid system.string to system.drawing.image.
- Dim ds As New DataSet
- Dim bs As New BindingSource
- ds.ReadXml("D:Project1people.xml")
- bs.DataSource = ds.Tables(0)
- Me.DataGridView1.DataSource = bs
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <root>
- <record>
- <Id>1</Id>
- <Name>Jack</Name>
- <Dob>22-3-1991</Dob>
- <Function>Function1</Function>
- <Picture>D:PicturesJack.jpg</Picture>
- </record>
- <record>
- <Id>2</Id>
- <Name>Taylor</Name>
- <Dob>16-8-1976</Dob>
- <Function>Function2</Function>
- <Picture>D:PicturesTaylor.jpg</Picture>
- </record>
- <record>
- <Id>3</Id>
- <Name>Haley</Name>
- <Dob>8-1-1988</Dob>
- <Function>Function1</Function>
- <Picture>D:PicturesHaley.jpg</Picture>
- </record>
- </root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement