Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
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 September 7th, 2004, 11:19 AM
Authorized User
 
Join Date: Jun 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default how do i get rid of table attributes in datagrids

Hi everybody,
I want to get rid of all the attributes that are being entered into the table tag of a datagrid control so that i am left with:

Code:
<table class="address">
Also how do i make the headings use the <th> tag

my aim is to have source that looks like:
Code:
<table class="address">
    <tr>
        <th>heading</th>
    </tr>
    <tr>
        <td>table data</td>
    </tr>
</table>
Cheers folks
 
Old September 7th, 2004, 11:16 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm afriad there is only so much you can do. The grid will use standard TD tags for the header row. You could provide a class for the header cells so that they can be differenciated from the regular rows for styling purposes. I have found it difficult to get rid of all the attributes, but you should be able to change them to acceptable values within the datagrid properties such that you can apply CSS styles to them.
 
Old September 8th, 2004, 01:59 AM
Authorized User
 
Join Date: Jun 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cheers for the info, i was afraid that would be the answer. its a bit odd they have decided to do that considering the whole accessibility thing, but there you go. Ive had a read of the sdk reference and realised that the class could be set by adding the attribute CssClass="address" to the correct tag.

Thanks Andy





Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you get Rid of quotes hewstone999 Access VBA 1 April 15th, 2008 10:42 AM
How do I get rid of xmlns= attributes? Peter Savas XSLT 6 July 11th, 2007 03:33 PM
How do I get rid of this comma?!?!?!?! tsindos Classic ASP Databases 10 February 16th, 2006 12:55 AM
How to get rid of this comma!!?! gilgalbiblewheel Classic ASP Databases 15 August 8th, 2005 06:41 PM
How to get rid of the horizontal scrollbar? Ruben@Adafi Dreamweaver (all versions) 12 September 9th, 2004 03:13 AM





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