您可以在所附的屏幕快照中检查是否插入了空值,而不是实际值
我有一个INSERT查询,进一步与Gridview绑定
查询为:
string cmdStr = fun.insert("SD_Cust_Quotation_Details_Temp",
"SessionId,CompId,FinYearId,ItemDesc,TotalQty,Rate",
"'" + SId + "','" + CompId + "','" + FinYearId + "','" + ProductName + "','" + Qty + "','" + r + "'");