Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 April 10th, 2008, 11:12 AM
Authorized User
Join Date: Jan 2008
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default gridview render tags

I am using a gridview that is bind to a datatable. The problem is that the gridview render <table> tag and create <tr> & <TD> for every single record. But what i want is something to render <UL> and <li> for each record. Could someone suggest me how to implement this?

Many Thanks
Old April 10th, 2008, 11:52 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

The Repeater control does not emit any HTML on it's own. You can set it up to emit anything you like, but you have to code all the binding expressions yourself.

Old April 14th, 2008, 08:23 PM
Friend of Wrox
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts

If you can rework the information into a DetailsView, the CSS Friendly Adapters render it automatically into a list the way you describe. It obviously limits you to one record at a time, but it's a useful trick to know. The adapters are pretty cool to have in place in any case.


Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Render HTML tags jacksprophet XSLT 1 December 28th, 2006 07:03 PM
Zoom in the render Tepox2000 Reporting Services 0 October 24th, 2006 12:19 PM
Render and credentials TonyStoker Reporting Services 0 May 17th, 2006 05:53 PM
Render to Printer kirbykn BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 April 21st, 2005 03:17 PM
Fail to Render the page gokul_blr Crystal Reports 2 September 22nd, 2004 06:08 AM

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