Results 1 to 3 of 3

Thread: datagrid with columns tha have different datatable rows

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2010
    Posts
    408

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

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    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 -

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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
  •  



Click Here to Expand Forum to Full Width