Datagrid Population

  • Thread starter Thread starter Craig G
  • Start date Start date
C

Craig G

i have a simple datagrid that i populate manually using one datatable within
a dataset

what i was wondering is, how would i populate the grid using a dataset with
more than one datatable?

at the mo my HTML follows this format for each template coloumn

<asp:TemplateColumn HeaderText="Company Name">
<HeaderStyle Width="100px"></HeaderStyle>
<ItemStyle Width="100px"></ItemStyle>
<ItemTemplate>
<asp:Label id=lblCompanyName Text='<%#
DataBinder.Eval(Container.DataItem, "CompanyName") %>' Runat="server">
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
 
You can't bind a grid to many tables. You can make another table out of
those many and bind the grid to it.

Eliyahu
 
Back
Top