foreach (DataGridViewRow dgvrow in dgvPointOfSales.Rows) { if (dgvrow.Cells["dgvtxtTotalAmount"].Value != null && dgvrow.Cells["dgvtxtTotalAmount"].Value.ToString() != string.Empty) { dTotal = dTotal + Convert.ToDecimal(dgvrow.Cells["dgvtxtTotalAmount"].Value.ToString()); } }
SelectedUnit
System.Windows.Controls.DataGridSelectionUnit.Cell
System.Windows.Controls.DataGridSelectionUnit.CellOrRowHeader
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)