ServiceInsuranceList = new System.Data.DataTable();
private void BtnAdd_Click(object sender, EventArgs e) { GrdServiceInsurance.DataSource = ServiceInsuranceList; for (int i = 0; i < GrdServiceInsurance.Rows.Count; ++i) { GrdServiceInsurance.Rows[i].Cells["Total"].Value =(Convert.ToInt32( GrdServiceInsurance.Rows[i].Cells["Cost"].Value.ToString())) -(Convert.ToInt32( GrdServiceInsurance.Rows[i].Cells["InsuranceCost"].Value.ToString())) } }
ServiceInsuranceList
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)