void AfisareProduseContract() { Program.Connection.CommandText = "select * from ContractItems WHERE ContractId=@ContractId"; Program.Connection.AddParameter("@ContractId", Convert.ToInt32(IdContractEditare)); DataTable Table = new DataTable(); Program.Connection.FillDataTable(Table, true); for (int i = 0; i < Table.Rows.Count; i++) { if (String.IsNullOrWhiteSpace(Table.Rows[i]["DeletedId"].ToString())) { dataProduseContract.Rows.Add(Table.Rows[i]["Name"].ToString(), Table.Rows[i]["Quantity"].ToString() + " " + Table.Rows[i]["QuantityUnit"].ToString(), Table.Rows[i]["Payment"].ToString(), Table.Rows[i]["Description"].ToString()); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)