Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click Dim Token As String = Me.resultlabel.Text Dim gvfiles As New GridView Dim mydatatable As New Data.DataTable mydatatable = returnitems(Token, "\CHRISTADSTUDIES\Studies") 'this functions returns a datatable Dim row1 As Data.DataRow = mydatatable.Rows(2) MsgBox(row1(0).ToString) 'test to make sure data is in the table gvfiles.AutoGenerateColumns = True gvfiles.DataSource() = mydatatable gvfiles.DataBind() errorlabel.Text = "completed" 'A label I used to make sure the code ran thru to the end. End Sub
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.