以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  这个错误是怎么回事?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=190094)

--  作者:xluoping
--  发布时间:2024/1/16 14:00:00
--  这个错误是怎么回事?
新增加一行,会弹出一个错误弹窗
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.ArgumentNullException: 值不能为空。
参数名: key


随后会产生 BeforeShowErrorMessage 以下信息,这是怎么回事?

System.ArgumentNullException: 值不能为空。
参数名: key
   在 System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   在 System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   在 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   在 System.Data.DataView.MaintainDataView(ListChangedType changedType, DataRow row, Boolean trackAddRemove)
   在 System.Data.DataViewListener.MaintainDataView(ListChangedType changedType, DataRow row, Boolean trackAddRemove)
   在 System.Data.Index.<>c__DisplayClass5.<MaintainDataView>b__4(DataViewListener listener, ListChangedType type, DataRow row, Boolean track)
   在 System.Data.Listeners`1.Notify[T1,T2,T3](T1 arg1, T2 arg2, T3 arg3, Action`4 action)
   在 System.Data.Index.MaintainDataView(ListChangedType changedType, Int32 record, Boolean trackAddRemove)
   在 System.Data.Index.InsertRecord(Int32 record, Boolean fireEvent)
   在 System.Data.Index.ApplyChangeAction(Int32 record, Int32 action, Int32 changeRecord)
   在 System.Data.DataTable.RecordStateChanged(Int32 record1, DataViewRowState oldState1, DataViewRowState newState1, Int32 record2, DataViewRowState oldState2, DataViewRowState newState2)
   在 System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)
   在 System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)
   在 System.Data.DataRowCollection.Add(DataRow row)
   在 Foxtable.RowCollection.o__Oo_o0()

--  作者:有点蓝
--  发布时间:2024/1/16 14:08:00
--  
把这个表所有表事件去掉,还有没有错误?如果没有,逐个启用表事件,看哪个事件代码有问题