Bug 479126

Summary: DataGrid, DataGridView. TextBox cells don't implement SelectionItem
Product: [Mono] UI Automation Reporter: Mario Carrion <mcarrion>
Component: Winforms - GeneralAssignee: E-mail List <mono-a11y-bugs>
Status: REOPENED --- QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P2 - High CC: cachen
Version: Release 1.0   
Target Milestone: Release 1.1   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: xorg.conf.install

Description Mario Carrion 2009-02-24 17:12:26 UTC
1. Run datagridview.py and run accerciser
2. Select "tree table" from Accerciser TreeView
3. Focus "Interface Viewer" and expand "Selection"
4. In the "Selection" list: click first checkbox, click Item0, click second checkbox. (You will need to minimize and maximize datagridview.py window because of a bug #479124 that doesn't invalidate cells when setting Selected programmatically)
5. Notice that only checkbox cells are selected.

Expected results

first checkbox, first textbox and second checkbox should be selected.

Notes:

In Vista, TextBox cells don't support SelectionItem, however seems that we will need to implement the interface anyway to actually support selecting them.
Comment 1 Mario Carrion 2009-03-04 14:49:22 UTC
Hours updated. Mar 3
Comment 2 Brad Taylor 2009-03-04 19:40:37 UTC
P1s and P2s automatically go into Release 1.0.
Comment 3 Mario Carrion 2009-03-12 17:55:40 UTC
Fixed UIAutomationWinforms-trunk r129165
Comment 4 calen chen 2009-03-23 03:54:49 UTC
Hi Mario, sorry I need reopen this bug that there are two others problems if follow these steps, please take a look, thanks!

DataGridView:
(1) expand "selection" under interface viewer": click first CheckBox, click TextBox Item0, first ComboBox, click Button Item0, click Link Item0 (5 items to be selected in total)
(2) then click other two items at random.

the problem is when click the 7 item, "first CheckBox" will be unselected, when click the 9 item, "TextBox Item0" will be unselected



DataGrid:
(1) expand "selection" under interface viewer": click Edit0 to select the first row, then click Edit1 or Edit2
(2) click Edit1 and Edit2, then click Edit0

the problem is : in step(1) the selection is moved from Edit0 row to Edit1 or Edit2 row(just one row to be selected). but in step(2) Edit1 row and Edit2 row can be multi-selected, and Edit0 row can't be selected.