111,120
社区成员
发帖
与我相关
我的任务
分享
string NewQuantity = this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle,"quantity").ToString().Trim();
stack.Quantity = Convert.ToDecimal(NewQuantity);//decimal.Parse(NewQuantity);
this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle,"quantity").ToString().Trim();
这一句,检查一下他返回的是不是为空,里面的对象是否为空