Hi
I have some code that works for one datatable and datagrid on one page and doesnt for another.
All I want to do is set a DataTable as the datasource of a datagrid and like I said it works in one instance but not another. Example of the code
Dim dt As DataTable
dt = DataGrid1.DataSource
Dim dr As DataRow
For Each dr In dt.Rows
lblTest.Text = dr(0).ToString
Next
Anyone have any ideas what I could be missing
Thanks
I have some code that works for one datatable and datagrid on one page and doesnt for another.
All I want to do is set a DataTable as the datasource of a datagrid and like I said it works in one instance but not another. Example of the code
Dim dt As DataTable
dt = DataGrid1.DataSource
Dim dr As DataRow
For Each dr In dt.Rows
lblTest.Text = dr(0).ToString
Next
Anyone have any ideas what I could be missing
Thanks