Click here to Skip to main content
15,896,606 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Delete Lines in Text File Pin
riced31-Mar-09 5:21
riced31-Mar-09 5:21 
QuestionI created a superscript in a rich text box but neeed to convert the same to caret sign in a text box Pin
gautamrajsaxena30-Mar-09 22:18
gautamrajsaxena30-Mar-09 22:18 
Questionplz help me to jump the return code to pass program check Pin
wgarnett30-Mar-09 21:37
wgarnett30-Mar-09 21:37 
AnswerRe: plz help me to jump the return code to pass program check Pin
Eddy Vluggen30-Mar-09 22:58
professionalEddy Vluggen30-Mar-09 22:58 
QuestionHow to configure ms access to allow lan connection in vb.net ???? Pin
JC.KaNNaN30-Mar-09 18:43
JC.KaNNaN30-Mar-09 18:43 
AnswerRe: How to configure ms access to allow lan connection in vb.net ???? Pin
_Damian S_30-Mar-09 19:12
professional_Damian S_30-Mar-09 19:12 
AnswerRe: How to configure ms access to allow lan connection in vb.net ???? Pin
Anubhava Dimri30-Mar-09 23:48
Anubhava Dimri30-Mar-09 23:48 
QuestionPopulating datagrid with array of xml files Pin
Jordan198230-Mar-09 12:14
Jordan198230-Mar-09 12:14 
Hi there - I am a newbie to the world of programming and have come across a huge stumbling block that is driving me wild.

I am trying to create an application that will get a list of all the xml files in a given directory, read through the contents of the xml files (they are all of identical format in terms of node/element structure) and populate a datagridview with the contents.

I have created an array of xml files and have been successful in binding one of the xml files to the dataset but I cant get it to iterate through the entire array. If I carry out the same task but output the contents of the xml file to a listbox it works successfully.

Can anybody help?

The problem code is:

Public Sub xmlReader2(ByVal dirPath As String)
Dim xmlfile As XmlReader
xmlfile = XmlTextReader.Create(dirPath)
Dim ds As New DataSet
ds.ReadXml(xmlfile)
DataGridView1.DataSource = ds.Tables(0)
End Sub

This sub is called by another sub which is iterating through the array. Like I say, I can output the information to a listbox so I presume the problem must be with the above code.

Hope some clever person can guide me in the right direction.

Thanks
AnswerRe: Populating datagrid with array of xml files Pin
Christian Graus30-Mar-09 15:30
protectorChristian Graus30-Mar-09 15:30 
QuestionDrowning! Pin
pack230-Mar-09 0:58
pack230-Mar-09 0:58 
AnswerRe: Drowning! Pin
Jon_Boy30-Mar-09 9:11
Jon_Boy30-Mar-09 9:11 
GeneralRe: Drowning! Pin
pack28-Apr-09 19:48
pack28-Apr-09 19:48 
AnswerRe: Drowning! Pin
Dave Kreskowiak30-Mar-09 9:27
mveDave Kreskowiak30-Mar-09 9:27 
AnswerRe: Drowning! Pin
Christian Graus30-Mar-09 15:29
protectorChristian Graus30-Mar-09 15:29 
GeneralRe: Drowning! Pin
EliottA31-Mar-09 2:21
EliottA31-Mar-09 2:21 
JokeRe: Drowning! Pin
0x3c031-Mar-09 6:42
0x3c031-Mar-09 6:42 
QuestionSave items to Database and get from datagrid Pin
Dave McCool30-Mar-09 0:54
Dave McCool30-Mar-09 0:54 
AnswerRe: Save items to Database and get from datagrid Pin
dan!sh 30-Mar-09 5:16
professional dan!sh 30-Mar-09 5:16 
GeneralRe: Save items to Database and get from datagrid Pin
Dave McCool30-Mar-09 7:51
Dave McCool30-Mar-09 7:51 
GeneralRe: Save items to Database and get from datagrid Pin
dan!sh 30-Mar-09 8:05
professional dan!sh 30-Mar-09 8:05 
AnswerRe: Save items to Database and get from datagrid Pin
anup keshari30-Mar-09 5:50
anup keshari30-Mar-09 5:50 
QuestionRemove() in vb.net Pin
vijay248229-Mar-09 21:23
vijay248229-Mar-09 21:23 
AnswerRe: Remove() in vb.net Pin
Christian Graus29-Mar-09 22:26
protectorChristian Graus29-Mar-09 22:26 
AnswerRe: Remove() in vb.net Pin
Steven J Jowett30-Mar-09 4:23
Steven J Jowett30-Mar-09 4:23 
Questionhow to use progress bar on copying file from embed resources to given path Pin
shivamgupta29-Mar-09 17:22
shivamgupta29-Mar-09 17:22 

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.