本文介绍了此行已从表中删除...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

此行已从表中删除,但没有任何数据。 BeginEdit()将允许在此行中创建新数据。

我在测试网站时在日志文件中收到错误。你可以告诉我这个问题的解决方案..

This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row.
I got an error in the log file while testing the website . can u please tell me the solution for this issue..

推荐答案


<pre lang="c#">
var qry = from si in tempdset.ItemSuppliers.AsEnumerable()
          where si.itemid == Convert.ToInt32(cmbSuppItem.SelectedValue.ToString())
          select si;
DataGridview1.DataSource = qry.AsDataView();





来自



from

<pre><pre lang="c#">
var qry = from si in tempdset.ItemSuppliers.AsEnumerable()
          where si.itemid == Convert.ToInt32(cmbSuppItem.SelectedValue.ToString())
          select si;
DataGridview1.DataSource = qry.ToList();
</pre></pre>





其中,

temdset是一个DataSet,而ItemSuppliers是表名。



where,
temdset is a DataSet and ItemSuppliers is table name.


这篇关于此行已从表中删除...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 01:15