StrataFrame Forum

DeletedRowInaccessibleException using BBS/DataGridView

http://forum.strataframe.net/Topic21574.aspx

By Keith Chisarik - 1/17/2009

Scenario:

Simple table with a BO on a form, one SF BBS with that BO as its object, a native .NET datagridveiw using the BBS as the datasource. When I delete a record I get a DeletedRowInaccessibleException and cant figure out how to avoid it. The error occurs accessing the field property for the first field SHOWN in the datagrid. 'ShowDeletedRecords' is left off.

I am thinking I am missing something simple since I just want to delete, I dont often use BBS control, so pardon if a simple answer.

ystem.Data.DeletedRowInaccessibleException was unhandled by user code
  Message="Deleted row information cannot be accessed through the row."
  Source="System.Data"
  StackTrace:
       at System.Data.DataRow.GetDefaultRecord()
       at System.Data.DataRow.get_Item(String columnName)
       at SDSI_Licensing_BOLIB.BO_licenses.get_lic_product() in C:\SVN WORKING DIRECTORY\SDSI_Licensing\SDSI_Licensing_BOLIB\BO_licenses.Designer.vb:line 293
       at SDSI_Licensing_BOLIB.BO_licenses.Field_lic_product_Descriptor.GetValue(Object component) in C:\SVN WORKING DIRECTORY\SDSI_Licensing\SDSI_Licensing_BOLIB\BO_licenses.Designer.vb:line 667
       at System.Windows.Forms.BindToObject.GetValue()
       at System.Windows.Forms.Binding.PushData(Boolean force)
  InnerException:

By Trent L. Taylor - 1/20/2009

Did you ever work through this?  If you haven't, could you post a quick sample reproducing the problem?  Thanks.
By Keith Chisarik - 1/20/2009

Will do first thing in the AM, thanks.