Error: Deleted row information cannot be accessed through the row

前端 未结 4 1775
一向
一向 2020-12-06 08:47

To whom this may concern, I have searched a considerable amount of time, to work a way out of this error

\"Deleted row information cannot be accessed

4条回答
  •  忘掉有多难
    2020-12-06 09:43

    The current value for the data column in the inner if statement will not be available for deleted rows. To retrieve a value for deleted rows, specify that you want the original value. This should fix your error:

    if (Convert.ToString(ds.Tables[0].Rows[i][0, DataRowVersion.Original].ToString()) == value)
    

提交回复
热议问题