Bug 480831 - DataGridBoolColumn:cells under BoolColumn should not implement Atk.EditableText?
Summary: DataGridBoolColumn:cells under BoolColumn should not implement Atk.EditableText?
Status: NEW
Alias: None
Product: UI Automation
Classification: Mono
Component: Winforms - General (show other bugs)
Version: Release 1.0
Hardware: x86 openSUSE 11.0
: P4 - Low : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-02 03:26 UTC by calen chen
Modified: 2009-03-04 15:59 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description calen chen 2009-03-02 03:26:50 UTC
REPRO:

1. Run uia2atk/test/samples/datagrid.py
2. Run accerciser, expand 'tree table', select one cell under BoolColumn(true/(null)/false)
3. Under 'interface viewer', expand 'Text(Editable)', delete the text and input something new

RESULT:

[Warn  11:17:29.641] Mono.UIAutomation.Winforms.Behaviors.DataGrid.DataItemEditValueProviderBehavior: Caught exception:
System.ArgumentException: Canot set column 'BoolColumn' to be null. Please use DBNull instead.
  at System.Data.DataRow.set_Item (Int32 columnIndex, System.Object value) [0x000d5] in /usr/src/packages/BUILD/mono-2.4/mcs/class/System.Data/System.Data/DataRow.cs:196 
  at System.Data.DataRow.set_Item (System.Data.DataColumn column, System.Object value) [0x0005c] in /usr/src/packages/BUILD/mono-2.4/mcs/class/System.Data/System.Data/DataRow.cs:157 
  at System.Data.DataRowView.set_Item (System.String property, System.Object value) [0x00044] in /usr/src/packages/BUILD/mono-2.4/mcs/class/System.Data/System.Data/DataRowView.cs:141 
  at System.Data.DataColumnPropertyDescriptor.SetValue (System.Object component, System.Object value) [0x00007] in /usr/src/packages/BUILD/mono-2.4/mcs/class/System.Data/System.Data/DataColumnPropertyDescriptor.cs:105 
  at System.Windows.Forms.DataGridColumnStyle.SetColumnValueAtRow (System.Windows.Forms.CurrencyManager source, Int32 rowNum, System.Object value) [0x00020] in /usr/src/packages/BUILD/mono-2.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridColumnStyle.cs:483 
  at System.Windows.Forms.DataGridBoolColumn.SetColumnValueAtRow (System.Windows.Forms.CurrencyManager lm, Int32 row, System.Object value) [0x00056] in /usr/src/packages/BUILD/mono-2.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridBoolColumn.cs:300 
  at System.Windows.Forms.DataGrid.set_Item (Int32 rowIndex, Int32 columnIndex, System.Object value) [0x00000] in /usr/src/packages/BUILD/mono-2.4/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs:724 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.DataGrid:set_Item (int,int,object)
  at Mono.UIAutomation.Winforms.DataGridProvider+DataGridDataItemProvider.SetEditValue (Mono.UIAutomation.Winforms.DataGridDataItemEditProvider edit, System.Object value) [0x00032] in /usr/src/packages/BUILD/uiautomationwinforms-127335/UIAutomationWinforms/Mono.UIAutomation.Winforms/DataGridProvider.cs:709 
  at Mono.UIAutomation.Winforms.Behaviors.DataGrid.DataItemEditValueProviderBehavior.PerformSetValue (System.String value) [0x00047] in /usr/src/packages/BUILD/uiautomationwinforms-127335/UIAutomationWinforms/Mono.UIAutomation.Winforms.Behaviors/DataGrid/DataItemEditValueProviderBehavior.cs:110

EXPECTED RESULT:

I think cells under BoolColumn should not implement EditableText. edit the Text value will do nothing unless change the value to "True" can check the cell.

COMMENTS: