|
-
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??
-
Feb 9th, 2010, 11:05 AM
#2
Re: datagrid with columns tha have different datatable rows
Is it an asp.net web app or a regular winform app you're writing?
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Feb 9th, 2010, 11:20 AM
#3
Re: datagrid with columns tha have different datatable rows
Please do not post multiple threads for the same question (other instance here). If you think you have posted in the wrong forum, PM a moderator to ask them to move it.
This thread is now closed.
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
|