Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Two rendered rows for each record in DataGrid

Reply
Thread Tools

Two rendered rows for each record in DataGrid

 
 
Hrvoje Vrbanc
Guest
Posts: n/a
 
      07-18-2003
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


 
Reply With Quote
 
 
 
 
\(Liquid\) Daniel Bass
Guest
Posts: n/a
 
      07-18-2003
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" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
 
Hrvoje Vrbanc
Guest
Posts: n/a
 
      07-18-2003
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" <> wrote in
message news:%...
> 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" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
date rendered differently on two computers with same regional settings Mark ASP .Net 12 08-09-2007 04:59 PM
How do I start writing a table to the browser berfore all rows are rendered? mortb ASP .Net 4 04-11-2007 07:51 AM
datagrid -- two rows for one record JFB ASP .Net 1 11-09-2006 09:26 PM
datagrid.. Is 2 rows per record possible? rooster575 ASP .Net 2 08-23-2004 05:40 PM
Two rows for each record in DataGrid Hrvoje Vrbanc ASP .Net Datagrid Control 1 08-12-2003 08:10 AM



Advertisments
 



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