string primaryKey = string.Empty;
spread1.SaveChanges();
if (this.spread1.ActiveSheetView.ActiveRow > -1)
{
primaryKey = this.spread1.Sheets[0].Cells[this.spread1.ActiveSheetView.ActiveRow, 13].Value.ToString();
我添加一行,没有填数据就直接删除,就报未将对象引用设置到对象的实例的错误出在上面最后一行代码处! |
|