for (int rowIndex = gdv2.Rows.Count - 2; rowIndex > 0; rowIndex--) { GridViewRow previousRow = gdv2.Rows[rowIndex + 1]; int c1 = 0; int cv1 = 0; foreach (GridViewRow row1 in gdv2.Rows) { if (row1.Cells[1].Text == previousRow.Cells[1].Text) { cv1 =System.Convert.ToInt32 (row1.Cells[3].Text); c1 += cv1; row1.Cells[4].Text = c1.ToString(); } } dataArray1.Add(c1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)