private void calculation() { BeginInvoke(new MethodInvoker(delegate { InfoGridView.PostEditor(); InfoGridView.UpdateCurrentRow(); })); txtValueOfGoods.Text = Convert.ToDecimal(gridColumn18.SummaryItem.SummaryValue).ToString("0.00"); txtTaxableAmount.Text = Convert.ToDecimal(gridColumn18.SummaryItem.SummaryValue).ToString("0.00"); txtTaxAmount.Text = Convert.ToDecimal(gridColumn19.SummaryItem.SummaryValue).ToString("0.00"); txtSurcharge.Text = Convert.ToDecimal(gridColumn21.SummaryItem.SummaryValue).ToString("0.00"); txtNetAmount.Text = (Convert.ToDecimal(txtTaxableAmount.Text) + Convert.ToDecimal(txtTaxAmount.Text) + Convert.ToDecimal(txtSurcharge.Text)).ToString("0.00"); txtRNetAmount.Text = Math.Round(Convert.ToDecimal(txtNetAmount.Text), 2).ToString("0.00"); }