﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » error with datagridview</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 24 Sep 2026 00:32:02 GMT</lastBuildDate><ttl>20</ttl><item><title>error with datagridview</title><link>http://forum.strataframe.net/FindPost24698.aspx</link><description>I have a datagridview (DGV from now) bounded via a BBS to a BO and within it (the DGV) I have a cell in the form of a combobox bounded to another BO via another BBS.&lt;/P&gt;&lt;P&gt;If I use the native function of the DGV when tries to insert a record I get this message: (if I disable the add function of the grid, this works fine)&lt;/P&gt;&lt;P&gt;Last but not least, the combobox field is part of the PK, so it cannot be null.&lt;/P&gt;&lt;P&gt;ArgumentException&lt;BR&gt;&amp;nbsp; La fila proporcionada no pertenece a este control DataGridView. (The row doesn't belongs to this DGV)&lt;BR&gt;Nombre del parámetro: e.Row&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : System.Windows.Forms&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.OnNewRowNeeded(DataGridViewRowEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.OnRowEnter(DataGridViewCell&amp;amp; dataGridViewCell, Int32 columnIndex, Int32 rowIndex, Boolean canCreateNewRow, Boolean validationFailureOccurred)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.SetCurrentCellAddressCore(Int32 columnIndex, Int32 rowIndex, Boolean setAnchorCellAddress, Boolean validateCurrentCell, Boolean throughMouseClick)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.OnCellMouseDown(HitTestInfo hti, Boolean isShiftDown, Boolean isControlDown)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.OnCellMouseDown(DataGridViewCellMouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.OnMouseDown(MouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.Control.WmMouseDown(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;</description><pubDate>Wed, 30 Sep 2009 09:46:12 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error with datagridview</title><link>http://forum.strataframe.net/FindPost24779.aspx</link><description>In the example there are no combo boxes in the DGV that gets data from another table. Without CBxs it works everything fine.</description><pubDate>Wed, 30 Sep 2009 09:46:12 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error with datagridview</title><link>http://forum.strataframe.net/FindPost24731.aspx</link><description>Please look at the Business Binding Source sample that comes with SF.  If you are using a standard DGV then this sample will show you exactly what to do.</description><pubDate>Fri, 25 Sep 2009 11:26:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>