Answers for "how to subtract two rows asp ne gridview in asp.net"

C#
0

how to subtract two rows asp ne gridview in asp.net

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())) 
                }

       }
Posted by: Guest on November-16-2020
0

how to subtract two rows asp ne gridview in asp.net

ServiceInsuranceList = new System.Data.DataTable();
Posted by: Guest on November-16-2020

Code answers related to "how to subtract two rows asp ne gridview in asp.net"

C# Answers by Framework

Browse Popular Code Answers by Language