My current code over writes the cell values , while we iterate the cells in a foreach loop iteration.
int iGrpCount = 0;
public class MyGroup
{
public int RowIndex { get; set; } // Row Index
public int ColumnIndex { get; set; } // Column Index
public…