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
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE