Geeks With Blogs

News

Google My Blog

Catch me at: The List!


My InstallScript Utility Belt My Amazon Wishlist
My Standard Disclaimer


Archives
Chris G. Williams Beware: I mix tech and personal interests here.
Is it possible to split a row of data into two rows on an asp.net datagrid?

I've done some (limited) googling with no success. Posted on Wednesday, September 28, 2005 4:46 PM | Back to top



Comments on this post: answer me this...

# re: answer me this...
Requesting Gravatar...
Do you want a row with nested data from a new dataset or just want present information from the same record on two rows?
Left by Will M on Sep 29, 2005 6:13 AM

# re: answer me this...
Requesting Gravatar...
Same record, broken into two rows so it doesn't stretch the browser all to hell.
Left by Chris Williams on Sep 29, 2005 6:20 AM

# re: answer me this...
Requesting Gravatar...
I would use a template column instead of a bound column. This way you could use HTML in the template and format the row as you like.
Left by Will M on Sep 29, 2005 6:29 AM

# re: answer me this...
Requesting Gravatar...
so.. if I had a row with 10 fields (which looks like hell on the webpage, much less printing) and I wanted to display a double row for each record, with 5 pieces of data in each row... all pertaining to the same record... I would use 5 template columns, and double up the data in each one?
Left by Chris Williams on Sep 29, 2005 7:00 AM

# re: answer me this...
Requesting Gravatar...
Actually, I would probably end up using a datarepeater instead. My code would look something like this...
<asp:repeater id="Repeater1" runat="server">
<headertemplate><table><tr><td>Column1</td><td>Column2</td><td>Column3</td><td>Column4</td><td>Column5</td></tr>
</headertemplate>
<itemtemplate>
<tr><td>Field1</td><td>Field2</td><td>Field3</td><td>Field4</td><td>Field5</td></tr>
<tr><td>Field6</td><td>Field7</td><td>Field8</td><td>Field9</td><td>Field10</td></tr>
</itemtemplate>
<footertemplate>
</table>
</footertemplate>
</asp:repeater>

Left by Will M on Sep 29, 2005 7:30 AM

Your comment:
 (will show your gravatar)


Copyright © Chris G. Williams | Powered by: GeeksWithBlogs.net