[Mono-list] DataGridView databind
Rıdvan Tülünay
ridvantulunay at gmail.com
Mon Nov 30 11:35:14 EST 2009
I cannot bind DataGridView in MONO,
throw this exceptions.
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Column index is out of range.
at System.Windows.Forms.DataGridView.InvalidateCell (Int32 columnIndex,
Int32 rowIndex) [0x00055] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:2858
at System.Windows.Forms.DataGridView.InvalidateCell
(System.Windows.Forms.DataGridViewCell dataGridViewCell) [0x00028] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:2845
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.DataGridView:InvalidateCell
(System.Windows.Forms.DataGridViewCell)
at System.Windows.Forms.DataGridViewCell.SetValue (Int32 rowIndex,
System.Object value) [0x00096] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewCell.cs:1314
at System.Windows.Forms.DataGridViewCell.set_Value (System.Object value)
[0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewCell.cs:385
at System.Windows.Forms.DataGridView.AddBoundRow (System.Object element)
[0x00077] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:5859
at System.Windows.Forms.DataGridView.DoBinding () [0x001d8] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:5953
at System.Windows.Forms.DataGridView.ReBind () [0x00018] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:6110
at System.Windows.Forms.DataGridView.set_DataMember (System.String value)
[0x00023] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:715
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.DataGridView:set_DataMember (string)
at Ehil.DevForm.LoadControlProp (System.Windows.Forms.Control
CurrentControl) [0x00069] in /home/ridvan/Projects/Ehil/Ehil/DevForm.cs:699
at Ehil.DevForm.FrmDevNewDialog_Click (System.Object sender,
System.EventArgs e) [0x00185] in
/home/ridvan/Projects/Ehil/Ehil/DevForm.cs:311
at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e)
[0x0001c] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs:999
at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e)
[0x000a5] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripMenuItem.cs:262
at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.EventArgs e)
[0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripMenuItem.cs:492
at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e,
ToolStripItemEventType met) [0x00042] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs:1776
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ToolStripItem:FireEvent
(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
at System.Windows.Forms.ToolStrip.OnMouseUp
(System.Windows.Forms.MouseEventArgs mea) [0x00047] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs:959
at System.Windows.Forms.ToolStripDropDown.OnMouseUp
(System.Windows.Forms.MouseEventArgs mea) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:622
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message&
m) [0x00081] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5595
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x0017c] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5332
at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:807
at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message&
m) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs:1211
at System.Windows.Forms.ToolStripDropDown.WndProc
(System.Windows.Forms.Message& m) [0x0001c] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:714
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234
at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00085] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20091130/eba216a5/attachment-0001.html
More information about the Mono-list
mailing list