﻿<?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 when BO is empty</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 11 Sep 2026 04:21:12 GMT</lastBuildDate><ttl>20</ttl><item><title>error when BO is empty</title><link>http://forum.strataframe.net/FindPost24465.aspx</link><description>I have a form with 2 comboboxes, one datagrid, 3 BO's and one BBS. The Bo's are related between them in a father, child, grandchild relationship. The BBS is attached to the datagrid. The datagrid receives the data of the grandchild.&lt;/P&gt;&lt;P&gt;I have the code that follows in the form:&lt;/P&gt;&lt;P&gt;Public Class frmTrabajoseinsumos&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub ComboBox2_ListPopulating(ByVal e As MicroFour.StrataFrame.UI.ListPopulatingEventArgs) Handles ComboBox2.ListPopulating&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Me.BoEmpresa1.Count &amp;gt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Parameters(0).Value = CInt(ComboBox1.SelectedValue)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Parameters(0).Value = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub ComboBox1_ParentFormLoading() Handles ComboBox1.ParentFormLoading&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.BoEmpresa1.FillAll()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (CInt(ComboBox1.SelectedValue)) &amp;gt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BoTipotrabajoinsumo1.FillByCustomPK(CInt(ComboBox1.SelectedValue))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ComboBox2.Requery()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Me.BoTrabajoinsumo1.Count &amp;gt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BoTrabajoinsumo1.FillByCustomPK(CInt(ComboBox1.SelectedValue), CInt(ComboBox2.SelectedValue))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'If Me.BoTrabajoinsumo1.Count &amp;gt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BoTrabajoinsumo1.FillByCustomPK(CInt(ComboBox1.SelectedValue), CInt(ComboBox2.SelectedValue))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGridView1.Refresh()&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;End Class&lt;BR&gt;&lt;/P&gt;&lt;P&gt;The problem cames in the last ComboBox2_SelectedIndexChanged. When the query of the FillByCustomPK cames with no data and the BO is empty I get the following error:&lt;/P&gt;&lt;P&gt;The CurrentRow for table '[dbo].[Trabajoinsumo]' could not be evaluated because the CurrentRowIndex is out of range.&amp;nbsp; Business object record count: 0.&amp;nbsp; CurrentRowIndex: -1.&lt;/P&gt;&lt;P&gt;The error is launched in a part of the generated code:&lt;/P&gt;&lt;P&gt;''' &amp;lt;summary&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Tipoactividad&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Browsable(False), _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BusinessFieldDisplayInEditor(), _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description("Tipoactividad"), _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)&amp;gt; _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Property [Tipoactividad]() As System.Int32&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return CType(Me.CurrentRow.Item("Tipoactividad"), System.Int32)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set(ByVal value As System.Int32)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.CurrentRow.Item("Tipoactividad") = value&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Set&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Property&lt;/P&gt;&lt;P&gt;Ive being trying to do my best but I cant find a solution in order to avoid the error, unless I change the generated code, and that's awfol.&lt;/P&gt;&lt;P&gt;Any Sugestion wil be well received.</description><pubDate>Thu, 10 Sep 2009 05:25:07 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24603.aspx</link><description>It looks as though you are going about this correctly, but the code snippet you gave doesn't show the whole picture.&amp;nbsp; But in short, if your foreign keys are getting updated, then you are in good shape.</description><pubDate>Thu, 10 Sep 2009 05:25:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24571.aspx</link><description>I was working around with this and there ares somethings I ´m not sure. Actually it does´t work as I espect.&lt;/P&gt;&lt;P&gt;Sopouse I´ve got a BOparent and a BOChild&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub BoParent_ParentFormLoading() Handles BoParent1.ParentFormLoading&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BoParent1.RegisterForeignKey(BOchild, "ChildFKFieldname")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;Is this correct. Or I have to put this in the BO instead of the instance of it?&lt;/P&gt;&lt;P&gt;I have to use the method of the parent or the child's one.&lt;/P&gt;&lt;P&gt;That's all;)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;and, the method is correct? or there is something better.</description><pubDate>Tue, 08 Sep 2009 06:52:46 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24570.aspx</link><description>I´ve was working around with this but I´m not getting the same result as using the properties. So here are some questions. Supouse Ive got BOParent and BOChild. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub BOChild_ParentFormLoading() Handles BoEmpresa1.ParentFormLoading&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOParent.RegisterForeignKey(BOchild, "ChildFKFieldname")&lt;/P&gt;&lt;P&gt;....&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub</description><pubDate>Tue, 08 Sep 2009 06:46:51 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24527.aspx</link><description>So what you are saying is that you need to register more than one foreign key for the BO, correct?  You can use the RegisterForeignKey method on the BO and pass over the child BO and the key information.  This must be done in code, but will server the exact same purpose as the standard ParentRelationship property available through the designer.</description><pubDate>Fri, 04 Sep 2009 09:56:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24525.aspx</link><description>Now I have something good!!!&lt;/P&gt;&lt;P&gt;If I put Empresa as parent key works fine. The problem is, what about having two or more foreing keys. I cannot put more than one parent.</description><pubDate>Fri, 04 Sep 2009 09:28:45 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24524.aspx</link><description>I've finally found where the error is:&lt;/P&gt;&lt;P&gt;at windowsaplication1.BOempresa&amp;nbsp; (is a BO of course :))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Overrides Function GetValue(ByVal component As Object) As Object&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select Case Me.Field&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case BOEmpresaFieldNames.Descripcion&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return DirectCast(component, BOEmpresa).Descripcion&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case BOEmpresaFieldNames.CUIT&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return DirectCast(component, BOEmpresa).CUIT&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case BOEmpresaFieldNames.Dirección&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return DirectCast(component, BOEmpresa).Dirección&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case BOEmpresaFieldNames.Ubicacion&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return DirectCast(component, BOEmpresa).Ubicacion&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case BOEmpresaFieldNames.Empresa&amp;nbsp; &lt;STRONG&gt;(after passing 4 times here)&lt;BR&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return DirectCast(component, BOEmpresa).Empresa&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Throw New BusinessLayerException("Field not supported.")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Select&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function</description><pubDate>Fri, 04 Sep 2009 08:31:39 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24512.aspx</link><description>It did work fine, but I still have a problem.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;tried to simplyfied it the best I could in one form because I have this in 3 forms and I cannot solve it. Let's see. &lt;/P&gt;&lt;P&gt;I have a Datagridview bounded via a BBS to a first BO. The Data... has a combobox inthere bounded to a second BO via a second BBS. I populate evreything as well and when I try to add a record using the datagrid directly, or via a Button with the add function is the same, I have a very ugly message, but I cannot debug it, or I don't know how to do it.&lt;/P&gt;&lt;P&gt;Ill attach you the message &amp;#119;indow.</description><pubDate>Thu, 03 Sep 2009 15:34:21 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24495.aspx</link><description>Yup, please download the most recent build and see if your problem persists.  Thanks.</description><pubDate>Wed, 02 Sep 2009 16:59:54 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24494.aspx</link><description>That problem was fixed in the latest version 1.7.0.2, download it from your account and you should be good.</description><pubDate>Wed, 02 Sep 2009 16:58:09 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24493.aspx</link><description>Ive change everything as suggested and now I have 2 Comboboxes bounded to a cuple od BO's and a datagridview bounded to a BBS and this bbs to a BO. Everything works fine intil I try to exit the form. When I go out of it thru the close&amp;nbsp;form icon I get this error. Any Clue, because I cant debug it because it doesn't pass thru my code.&lt;/P&gt;&lt;P&gt;KeyNotFoundException&lt;BR&gt;&amp;nbsp; La clave proporcionada no se encontró en el diccionario. (the key provided is not found&amp;nbsp;in the diccionary)&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : mscorlib&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.ThrowHelper.ThrowKeyNotFoundException()&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Collections.Generic.Dictionary`2.get_Item(TKey key)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en MicroFour.StrataFrame.Business.BusinessLayer.get__CurrentDataTable(Boolean IsSharedTable)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en MicroFour.StrataFrame.Business.BusinessLayer.get_Count()&lt;BR&gt;&amp;nbsp;&amp;nbsp; en MicroFour.StrataFrame.Business.BusinessBindingSource.get_IBindingListView_Count()&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.CurrencyManager.get_Count()&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridViewCell.GetValue(Int32 rowIndex)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridViewCell.GetFormattedValue(Int32 rowIndex, DataGridViewCellStyle&amp;amp; cellStyle, DataGridViewDataErrorContexts context)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridViewTextBoxCell.GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, Int32 rowIndex, Size constraintSize)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridViewCell.GetPreferredWidth(Int32 rowIndex, Int32 height)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridViewCell.OnCellDataAreaMouseEnterInternal(Int32 rowIndex)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridViewCell.OnMouseMoveInternal(DataGridViewCellMouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.OnCellMouseMove(DataGridViewCellMouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.UpdateMouseEnteredCell(HitTestInfo hti, MouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.DataGridView.OnMouseMove(MouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; en System.Windows.Forms.Control.WmMouseMove(Message&amp;amp; m)&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, 02 Sep 2009 16:50:37 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24491.aspx</link><description>[quote][b]Edhy Rijo (09/02/2009)[/b][hr]Felix,&lt;BR&gt;&lt;BR&gt;The rule is that whenever you will be accesing the BO property, you must check for the BO.Count like you are doing for the other combos.&lt;BR&gt;[/quote]&lt;P&gt;OK to this, I'll be more carefull.:w00t:&lt;/P&gt;&lt;P&gt;[quote]&lt;BR&gt;Also, instead of using the combo.SelectedValue, use the binded property of the combo:&lt;BR&gt;&lt;BR&gt;e.Parameters(0).Value = BO.PropertyName)&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;This is the one I'm more interested on. Thanks for the suggestion.:)&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Wed, 02 Sep 2009 14:49:59 GMT</pubDate><dc:creator>Felix M Avendano</dc:creator></item><item><title>RE: error when BO is empty</title><link>http://forum.strataframe.net/FindPost24471.aspx</link><description>Felix,&lt;br&gt;
&lt;br&gt;
The rule is that whenever you will be accesing the BO property, you must check for the BO.Count like you are doing for the other combos.&lt;br&gt;
&lt;br&gt;
Also, instead of using the combo.SelectedValue, use the binded property of the combo:&lt;br&gt;
[quote]&lt;br&gt;
e.Parameters(0).Value = BO.PropertyName)&lt;br&gt;
[/quote]</description><pubDate>Wed, 02 Sep 2009 09:09:26 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>