473,549 Members | 2,948 Online
Bytes | Software Development & Data Engineering Community
+ 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 UseAccessiblity Headers 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.ItemTyp e)
{
case ListItemType.He ader:
for(int i=0;i<e.Item.Co ntrols.Count;i+ +)
{
tc=(TableCell) e.Item.Controls[i];
tc.ID="H"+(i+1) ;
}
break;
case ListItemType.It em:

etc....

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

dgPortfolio__ct l1_H1
dgPortfolio__ct l1_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 864

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

Similar topics

12
2159
by: JAMESICUS | last post by:
Refer to ..... http://news.com.com/2100-1032-5063444.html James Pickering Pickering Pages http://www.jp29.org/
9
2290
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 another? Where does the meaning overlap, if it does? Where do they perhaps conflict with one another, if they do? Can anyone please explain to...
5
2689
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 probably more to do with my lack of understanding of how a user might interact with a web site without using a mouse. I have tried using the...
54
4316
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
2114
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 org, However, I haven't gotten a reply for a week or so, and figured out I could post here for a larger audience, then. Original message...
0
1221
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 it supports a variety of types of multiple selection. It can support column, row, table, or ad-hoc cell multiple selection. My question is, does...
4
2968
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 order". The application is built and the next step is to create the custom JAWS (Freedom Scientific)screen reader script to read the application. The...
3
1947
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 the Managed C++ specifications, if one declares a public event without any attempt to provide one's own event access methods, clearly the most common...
8
2036
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 just started it off!), so i'd very much appreciate any comment on the site/issue: www.accessibility.ws (fyi: i a non-commercial, personal...
0
7446
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7718
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1936
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 we have to send another system
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.