datagridview1.Rows.Add()
DataRow dr = ds_ITEMS.Tables["StkTrx"].NewRow(); // NullReferenceException gives in this line dr["Code"] = this.txtCode.Text; dr["ItemDes"] = this.txtDes.Text; dr["Qty"] = this.txtQty.Text; dr["UnitPrice"] = this.txtCostPrice.Text; dr["Amount"] = this.txtAmount.Text; ds_ITEMS.Tables["StkTrx"].Rows.Add(dr);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)