111,094
社区成员




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();
这一句,检查一下他返回的是不是为空,里面的对象是否为空