Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ' Declarations Dim objStreamReader As New StreamReader(Server.MapPath("TextFile.txt")) Dim arrText As New ArrayList ' Loop through the file and add each line to the ArrayList Do While objStreamReader.Peek() >= 0 arrText.Add(objStreamReader.ReadLine) Loop ' Close the reader objStreamReader.Close() ' Bind the results to the GridView GridView1.DataSource = arrText GridView1.DataBind() End Sub