Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2004, 08:34 AM
Authorized User
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datalist layout Problem

I want to display some data in a datalist using a grid layout.
but it does not work.

 eg:
 I want to show
 test 200 99
 tmp 34 7

but it shows as
 test 200 99
 tmp 34 7

I used dlLine.RepeatLayout = RepeatLayout.Table part aswell

is there anything to do in the Item Template? or anything else

 pls let me know..

 Tnks



 
Old February 3rd, 2004, 10:40 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Using the RepeatLayout.Table simply puts the contents of each ItemTemplate into a single table cell in one row.

You could either wrap the whole datalist inside of a <table>, then make the ItemTemplate write the <tr> and <td>s for each desired column, or (and this would much simpler) use the DataGrid control. You can trim down a datagrid to only show the data, and it draws everything into a table by design.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
PlainHTMLYellow layout problem jgranade BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 January 21st, 2007 12:29 AM
Layout problem roy_mm Reporting Services 1 September 28th, 2006 03:43 PM
Datalist layout silverfox_1188 ASP.NET 1.0 and 1.1 Professional 2 May 13th, 2005 05:43 AM
datalist layout silverfox_1188 Classic ASP Components 0 May 11th, 2005 04:16 PM
Report layout problem socoolbrewster Access 0 March 22nd, 2004 07:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.