[Mono-bugs] [Bug 81022][Nor] New - DataGrid + DataView databinding not working

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Mar 3 11:14:24 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mika.aalto at tut.fi.


--- shadow/81022	2007-03-03 11:14:24.000000000 -0500
+++ shadow/81022.tmp.10278	2007-03-03 11:14:24.000000000 -0500
@@ -0,0 +1,71 @@
+Bug#: 81022
+Product: Mono: Class Libraries
+Version: 1.2
+OS: unknown
+OS Details: 
+Status: NEW   
+Severity: Unknown
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: mika.aalto at tut.fi               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: DataGrid + DataView databinding not working
+Description of Problem:
+When using DataView as a datasource for DataGrid and setting datatable with
+some data to DataView's Table-property no data is displayed on DataGrid.
+Steps to reproduce the problem:
+1. Set dataview as a datasource for datagrid.
+2. Set datatable with some test data to dataview Table-property.
+Actual Results:
+Values in datatable are not visible. Columns in datatable are not
+displayed. Also when clicking first column (selection column) second or
+third row I get:
+System.ArgumentOutOfRangeException: Index is less than 0 or more than or
+equal to the list count.
+Parameter name: index
+  at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] 
+  at System.Windows.Forms.GridColumnStylesCollection.get_Item (Int32 index)
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.GridColumnStylesCollection:get_Item (int)
+  at System.Windows.Forms.DataGrid.ScrollToColumnInPixels (Int32 pixel)
+  at System.Windows.Forms.DataGrid.EnsureCellVisibility (DataGridCell cell)
+  at System.Windows.Forms.DataGrid.set_CurrentCell (DataGridCell value)
+  at System.Windows.Forms.DataGrid.set_CurrentRow (Int32 value) [0x00000] 
+  at System.Windows.Forms.DataGrid.OnMouseDown
+(System.Windows.Forms.MouseEventArgs e) [0x00000] 
+  at System.Windows.Forms.Control.WmLButtonDown
+(System.Windows.Forms.Message& m) [0x00000] 
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000] 
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x00000] 
+Expected Results:
+DataGrid is displayed with values and columns in datatable.
+How often does this happen? 
+Additional Information:
+Tested with r73656

More information about the mono-bugs mailing list