如图:exception:Deleted row information cannot be accessed through the row处理

exception说的比较清楚了,已经从list里删除的这行就不能再读取了,

所以在读取之前做一个判断去处理就可以了:

 For Each coderow As CourseDataset.T_RO_COURSERow In Me.m_myAllCoursesDS.T_RO_COURSE.Rows
         If coderow.RowState <> DataRowState.Deleted Then
               dMoeCode = coderow.MOE_CODE
         End If
 Next

 

相关文章:

  • 2021-09-27
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-11-25
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2021-07-17
  • 2021-12-23
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案