speed00 发表于 2020-12-2 11:31:56

已添加了具有相同键的项

你好,我使用多线程对表格取值,填充
在获取某个字段的值时报了错:请问为什么会出现这种问题,和多线程有关系吗?

System.ArgumentException: 已添加了具有相同键的项。
   在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   在 GrapeCity.Spreadsheet.GenericStorage`1.Add(T value, Int32 refCount)
   在 GrapeCity.Spreadsheet.GenericStorage`1.Intern(T& value, Int32 refCount)
   在 GrapeCity.Spreadsheet.Win.CompositorUtils.Compose(Worksheet worksheet, StyleData& prioritizeStyleData, StyleData& composeStyleData, Boolean isLightCompose)
   在 GrapeCity.Spreadsheet.Win.BelowLayerTableCompositor.GrapeCity.Spreadsheet.IStyleFormatCompositor.Composite(Worksheet worksheet, Int32 row, Int32 column, StyleData& aboveStyle)
   在 GrapeCity.Spreadsheet.Styles.GetRenderStyle(Worksheet worksheet, Int32 row, Int32 column, CfExecutedResult& results)
   在 FarPoint.Win.Spread.SheetView.a(Int32 A_0, Int32 A_1, CfExecutedResult& A_2)
   在 FarPoint.Win.Spread.SheetView.aj(Int32 A_0, Int32 A_1)
   在 FarPoint.Win.Spread.Cell.a(ISheetStyleModel A_0, Boolean A_1, IEditor& A_2, IFormatter& A_3)
   在 FarPoint.Win.Spread.Cell.get_Text()
   在 Jxerp.formContractRichTextSentence.SetGridColumnValue() 位置 D:\Jxerp\ProductManagement\formContractRichTextSentence.cs:行号 4861



KearneyKang 发表于 2020-12-2 11:57:05

你好,你咨询的应该是Spread的问题,可以在该 地址进行问题的提问发帖:https://gcdn.grapecity.com.cn/forum.php?mod=forumdisplay&fid=232

speed00 发表于 2020-12-2 13:17:13

谢谢,放错地方了

KearneyKang 发表于 2020-12-2 13:45:13

不客气:)
页: [1]
查看完整版本: 已添加了具有相同键的项