469,962 Members | 2,347 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

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
Nov 17 '05 #1
2 2243
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" <hr*****@recro.hr> wrote in message
news:Ox**************@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

Nov 17 '05 #2
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" <da**************@MAILpostmaster.co.uk> wrote in
message news:%2****************@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" <hr*****@recro.hr> wrote in message
news:Ox**************@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


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Clayton Hamilton | last post: by
3 posts views Thread by MrNobody | last post: by
3 posts views Thread by Jim Heavey | last post: by
10 posts views Thread by Aaron Smith | last post: by
reply views Thread by rn5a | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.