|
-
Feb 9th, 2010, 10:46 AM
#1
Thread Starter
Hyperactive Member
datagrid with columns tha have different datatable rows
i want to make a datagrid with 2 columns and many rows
the columns i want to have databinding with a datatable
i want the 1 row 1 column of datagrid have data from 1 row of datatable
i want the 1 row 2 column of datagrid have data from 2 row of datatable
i want the 2 row 1 column of datagrid have data from 3 row of datatable
i want the 2 row 2 column of datagrid have data from 4 row of datatable
......
......
i use something like this
<Columns>
<asp:TemplateColumn >
<ItemTemplate >
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# databinder.eval(container.dataitem,"url") %>'Text='<%# databinder.eval(container.dataitem,"titlos") %>'></asp:HyperLink>
</ItemTemplate >
</asp:TemplateColumn >
<Columns>
<Columns>
<asp:TemplateColumn >
<ItemTemplate >
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# databinder.eval(container.dataitem,"url") %>'Text='<%# databinder.eval(container.dataitem,"titlos") %>'></asp:HyperLink>
</ItemTemplate >
</asp:TemplateColumn >
<Columns>
but i have two times the same in tha datagrid left and right
can anyone help me??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|