Datagrid Population

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>
 
E

Eliyahu Goldin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top