DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject Class
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Windows Forms includes built-in accessibility support that allows your application to work with accessibility client applications. Examples of accessibility client applications include screen enlarger and reviewer utilities, voice input utilities, on-screen keyboards, alternative input devices, and keyboard enhancement utilities.
The DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject class inherits from the AccessibleObject class to provide information about a DataGridViewRowHeaderCell to accessibility client applications. Each class that represents a visual part of the DataGridView—such as DataGridViewColumnHeaderCell, DataGridViewRowHeaderCell, DataGridViewRow and DataGridViewCell—also contains a class that inherits from AccessibleObject to provide information about the containing class and perform actions on behalf of accessibility client applications.
There are instances when you will want to provide additional information, such as the name or description of the DataGridView control, to accessibility client applications. There are two ways of providing this additional information. To provide limited accessibility information for existing controls, set the control's AccessibleName and AccessibleDescription property values, which will be reported to accessibility client applications.
![]() |
---|
You should change the AccessibleDefaultActionDescription and AccessibleRole property values only in rare situations, such as if you make a DataGridView look like a list. |
Occasionally, you might require more accessibility information or different accessibility actions to be included with your custom DataGridView or DataGridViewCell. To customize accessibility, you can write your own class that derives from the DataGridView.DataGridViewAccessibleObject or DataGridViewCell.DataGridViewCellAccessibleObject classes and override the CreateAccessibilityInstance method. For example, if you are writing a custom row header cell that implements unique custom actions, such as special hit testing within your cell, you should create a class that inherits from the DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject class and override the CreateAccessibilityInstance method.
The DataGridView exposes its data structure by using AccessibleRole values to define the data table hierarchy. For more information on exposing data tables to Microsoft Active Accessibility, see "Exposing Data Tables through Microsoft Active Accessibility" in the MSDN library at http://msdn.microsoft.com/library.
System.MarshalByRefObject
System.Runtime.InteropServices.StandardOleMarshalObject
System.Windows.Forms.AccessibleObject
System.Windows.Forms.DataGridViewCell.DataGridViewCellAccessibleObject
System.Windows.Forms.DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject MembersSystem.Windows.Forms Namespace
DataGridView Class
DataGridViewCell Class
DataGridViewRowHeaderCell Class
DataGridView.DataGridViewAccessibleObject Class
DataGridViewCell.DataGridViewCellAccessibleObject Class
AccessibleObject Class
AccessibleRole Enumeration
Control.CreateAccessibilityInstance
Control.AccessibleName Property
Control.AccessibleDescription Property