gridview problem
-
I am trying to use the gridview control to display data on page, however the data is not displayed. I am not getting any build error but its just not displaying the data. Any ideas??
SelectCommand="SELECT [ID], [OrderCode] FROM [glaxoAll5032007OrderDetail]"> Can anyone spot what i may have done wrong??? Many Thanks in advance.
-
I am trying to use the gridview control to display data on page, however the data is not displayed. I am not getting any build error but its just not displaying the data. Any ideas??
SelectCommand="SELECT [ID], [OrderCode] FROM [glaxoAll5032007OrderDetail]"> Can anyone spot what i may have done wrong??? Many Thanks in advance.
You need to set DataSourceID on the GridView:
<asp:GridView ID="GridView1" runat="server" DataSourceID="AccessDataSource1"></asp:GridView>
Declan Bright www.declanbright.com
-
You need to set DataSourceID on the GridView:
<asp:GridView ID="GridView1" runat="server" DataSourceID="AccessDataSource1"></asp:GridView>
Declan Bright www.declanbright.com
Many thanks!! that worked.