解决方法:
txtInvNo.Text = oGrnRow.Inv_No is System.DBNull?"":(string)oGrnRow.Inv_No.Trim();
if(!oDataRow.Isven_noNull())
txVenNo.Text = oDataRow.ven_no;
转载于:https://www.cnblogs.com/lgzh3/archive/2007/04/11/708114.html
转载于:https://www.cnblogs.com/lgzh3/archive/2007/04/11/708114.html