473,484 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Accessibility and the Datagrid

Hi folks,
I'm using ASP.net 1.1 with C#

I've been instructed by my employers that I must comply with the UK DDA
(Disability Discrimination Act 1995).

My app is largely compliant only semantic markup and plenty of CSS, but even
though my datagrid has UseAccessiblityHeaders set to true this is not enough
that property only adds scope="col" and <th> elements

I need to access the header elements and add
id=""
Then I need to access each <td> and add a headers="" to follow the name of
that column's Id attribute

I'm doing this in the ItemCreated event of the datagrid like so..

switch (e.Item.ItemType)
{
case ListItemType.Header:
for(int i=0;i<e.Item.Controls.Count;i++)
{
tc=(TableCell) e.Item.Controls[i];
tc.ID="H"+(i+1);
}
break;
case ListItemType.Item:

etc....

my problem
the ID of H+ integer is giving me a weirder and longer name made up by the
control itself

dgPortfolio__ctl1_H1
dgPortfolio__ctl1_H2

etc...

second how can I add the headers= attribute into the body of the table (i.e
the other cells) to get each one in turn to reflect that it belongs to that
column

I thought I could use InnerHtml, but how do I do that to a cell at runtime...

or perhaps you have a better idea altogether how to make my datagrid
compliant with accessibility standards

Regards, and thanks in advance
CharlesA
Jun 6 '06 #1
0 855

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2155
by: JAMESICUS | last post by:
Refer to ..... http://news.com.com/2100-1032-5063444.html James Pickering Pickering Pages http://www.jp29.org/
9
2280
by: Barbara de Zoete | last post by:
I am getting more and more confused as to the meaning of the words 'accessibility' and 'usability' *in the context of the world wide web*. What do these two words mean? How do they differ from one...
5
2685
by: Dave Henson | last post by:
Hi I am checking a site for accessibility and Dreamweaver suggests making sure that the menu is accessible via keyboard as well as mouse (i.e device-independent). A question has arisen which is...
54
4303
by: richard_quick_uk | last post by:
Hi, If anyone's got the time I'd really appreciate any feedback on the accessibility of this site: http://www.cata.co.uk/_index.a­sp
0
2105
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python...
0
1213
by: Pete Davis | last post by:
Sorry to have to post this here, but none of the accessibility newsgroups seem to be active. I've got a custom control that I'm adding accessibility support to. The control is a grid control and...
4
2948
by: waltborders | last post by:
Hi, Because the blind are unable to use a mouse, keyboard navigation is key. A major difficulty is that not all windows forms controls are keyboard 'tab-able' or 'arrow-able' or have "tab...
3
1934
by: Edward Diener | last post by:
According to the CLS specification, the accessibility of the methods for adding, removing, and raising an event must be identical. There appear to be a few problems with this: 1) According to...
8
2034
by: cms-hispano.org | last post by:
i'm building a site about extreme accessibility, i.e.: how (and why) to get sites to become fully accessible, *beyond* W3C Web Accessibility Initiative guidelines. it's far from being completed (i...
0
6953
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7105
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7144
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6813
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4845
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3046
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1359
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.