Bugzilla – Bug 480831
DataGridBoolColumn:cells under BoolColumn should not implement Atk.EditableText?
Last modified: 2009-03-04 15:59:18 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: