Two rendered rows for each record in DataGrid

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Two rendered rows for each record in DataGrid

    Hello all!

    I have quite an strange question: I'm using DataGrid to display the results
    of a query stored in a DataSet. I use data binding with DataBinder.Eval
    statement (like e.g. <%# DataBinder.Eval(Container.DataItem, "ColumnName")
    %>).
    Now the tricky part: is it possible to render one more table row for each
    record that would be span over several columns and contain some further
    databound informations? What I want to say is that I don't want all columns
    from DataSet to be displayed one beside another but instead, to save the
    horizontal space, I want to put the values from on colum below the others.

    Example how should it look like:

    1. PartNumber1 ProductName1 Price1
    ProductDescription1
    2. PartNumber2 ProductName2 Price2
    ProductDescription2
    .....

    Many thanks,
    Hrvoje


    Hrvoje Vrbanc Guest

  2. Similar Questions and Discussions

    1. Mathematical formula used in dynamically rendered DataGrid
      Hi, I'm trying to find the ASP mathematical formula for the calculation of the width in a dynamically rendered DataGrid with a SQL statement. Is...
    2. Moving Rows in a datagrid.
      Does anyone know of a good example that shows me how I can move rows in a datagrid? For example Click and Drag row 5 and drop it on row 2 to insert...
    3. writing db record to tables (wrapping and spanning rows)
      Hi, I have a dataset where each record contains a persons name and filename of their picture. I want to write a row of five names, then a row...
    4. Two rows for each record in DataGrid
      Hello all, I have posted similar question in another group a while ago (before this group came into existence) but would like to double-check on...
    5. datagrid: rendered with 'rules="all"' causes trouble in Netscape 7.02
      Hello I want to render a datagrid with transparent borders (cellspacing = 1) so the underlying background shines through. Unfortunately,...
  3. #2

    Default Re: Two rendered rows for each record in DataGrid

    Don't use a datagrid, use a Data List, this displays the records in your
    database how ever you like, getting the result you want would be easy.

    Lemme know if you want help using it.

    Dan.

    "Hrvoje Vrbanc" <hrvojev@recro.hr> wrote in message
    news:OxUVjUSTDHA.3188@tk2msftngp13.phx.gbl...
    > Hello all!
    >
    > I have quite an strange question: I'm using DataGrid to display the
    results
    > of a query stored in a DataSet. I use data binding with DataBinder.Eval
    > statement (like e.g. <%# DataBinder.Eval(Container.DataItem, "ColumnName")
    > %>).
    > Now the tricky part: is it possible to render one more table row for each
    > record that would be span over several columns and contain some further
    > databound informations? What I want to say is that I don't want all
    columns
    > from DataSet to be displayed one beside another but instead, to save the
    > horizontal space, I want to put the values from on colum below the others.
    >
    > Example how should it look like:
    >
    > 1. PartNumber1 ProductName1 Price1
    > ProductDescription1
    > 2. PartNumber2 ProductName2 Price2
    > ProductDescription2
    > ....
    >
    > Many thanks,
    > Hrvoje
    >
    >

    \(Liquid\) Daniel Bass Guest

  4. #3

    Default Re: Two rendered rows for each record in DataGrid

    Thank you, I'll rewrite the application but I was hoping DataGrid could be
    customized in such a way because I use paging and sorting in that DataGrid.
    I was thinking about the programmatically (dynamically) created table that
    offers great flexibility in formatting but again paging and sorting looked
    troublesome.

    Hrvoje


    "(Liquid) Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> wrote in
    message news:%23CN5VXSTDHA.1288@tk2msftngp13.phx.gbl...
    > Don't use a datagrid, use a Data List, this displays the records in your
    > database how ever you like, getting the result you want would be easy.
    >
    > Lemme know if you want help using it.
    >
    > Dan.
    >
    > "Hrvoje Vrbanc" <hrvojev@recro.hr> wrote in message
    > news:OxUVjUSTDHA.3188@tk2msftngp13.phx.gbl...
    > > Hello all!
    > >
    > > I have quite an strange question: I'm using DataGrid to display the
    > results
    > > of a query stored in a DataSet. I use data binding with DataBinder.Eval
    > > statement (like e.g. <%# DataBinder.Eval(Container.DataItem,
    "ColumnName")
    > > %>).
    > > Now the tricky part: is it possible to render one more table row for
    each
    > > record that would be span over several columns and contain some further
    > > databound informations? What I want to say is that I don't want all
    > columns
    > > from DataSet to be displayed one beside another but instead, to save the
    > > horizontal space, I want to put the values from on colum below the
    others.
    > >
    > > Example how should it look like:
    > >
    > > 1. PartNumber1 ProductName1 Price1
    > > ProductDescription1
    > > 2. PartNumber2 ProductName2 Price2
    > > ProductDescription2
    > > ....
    > >
    > > Many thanks,
    > > Hrvoje
    > >
    > >
    >
    >

    Hrvoje Vrbanc Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139