We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Screen Reader Question

Thread ID:

Created:

Updated:

Platform:

Replies:

35198 Sep 26,2005 08:10 AM Sep 29,2005 04:35 AM Windows Forms 3
loading
Tags: GridControl
Kevin Lavallee
Asked On September 26, 2005 08:10 AM

I have a custom control that contains the Grid Control. This control is now required to be compatible with screen readers. I am currently using Window-Eyes as my reader. I have coded my interface correctly and when using the mouse to click on a grid row, the information in the row is properly announced. However, when I use the keyboard (just the up/down arrows), the information is not being announced. I am using the "MoveTo" to ensure that focus goes to the first column in the newly selected row but that does not seem to help. Is there any way to emulate a click on a grid cell when handling the "KeyDown" event? Is there another way to ensure that a grid cell is physically selected? This is most likely an issue with Window-Eyes and not the grid control but I am now looking for a way to get around this issue as our code freeze is quickly approaching. Thanks in advance.

Administrator [Syncfusion]
Replied On September 26, 2005 03:14 PM

Just something to try. Try setting this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SetCurrent; This will make sure the current cell gets activated as you cursor into the cell. This happens by default when you click on a cell but does not when you cursor into the cell.

Kevin Lavallee
Replied On September 28, 2005 08:17 AM

Hi Clay, I probably should have mentioned this in my original post. We have a class that is derived from the GridControl class and we are overriding the keyboard events. We are manually highlighting the cells that need to be as we have merged ranges (columns)that need to be selected for different rows. The code was never really telling the grid control to physically go to a particular row/column. It was just highlighting the cells and raising a custom event which included the row/column that we just manually highlighted. I have changed to code to implement your suggestion as well as call the following methods to physically place the focus into a specific cell: this.Grid.CurrentCell.MoveTo this.Grid.RaiseCellClick These seem to not adversely affect the functionality of my derived object but it still will not trigger the screen reader to request the accessibility object for the new cell that I am forcing myself into. Any other thoughts on what the "DownArrowKey" event would normally have done that I need to emulate? Thanks again for your help.

Administrator [Syncfusion]
Replied On September 29, 2005 04:35 AM

Hi Kevin, DownArrowKey just moves the current cell one down using CurrentCell.Move(). This is how the src. code handles the DownArrowKey. protected override void OnKeyDown(KeyEventArgs e) { /// /// case Keys.Down: if (!menuKeyDown) { success = CurrentCell.Move(controlKeyDown ? GridDirectionType.Bottom : GridDirectionType.Down, Math.Max(1, repeatCount), extendSelection); isHandled = true; isSpeedKey = Control.ModifierKeys == Keys.None && success && !cancelMode; } break; /// /// Best regards, Jay

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;