alfizo
New member
Hey guys i was wondering if you could help me with A Code to load information that was saved to a textfile to load back into the datagrid... please help me!
i tried the following code but it dont load it back!
please help guys
i tried the following code but it dont load it back!
VB.NET:
' Create an instance of StreamReader to read from a file.
Using sr As IO.StreamReader = New IO.StreamReader("e:\moviedatasource.txt")
Dim line As String
' Read and display the lines from the file until the end
' of the file is reached.
Do
For Each currentrow As DataGridViewRow In Me.DataGridView.Rows
Next
line = sr.ReadLine()
System.Diagnostics.Debug.WriteLine(line)
Loop Until line Is Nothing
sr.Close()
End Using
please help guys
Last edited: