protected void updateEncoderCompareInterAndReps() { EncoderCompareInter = new ArrayList(); //find RepsActive string [] selectedID = genericWin.GetColumn(0, true); //only active string [] selectedDate = genericWin.GetColumn(dateColumn, true); //only active for (int i = 0; i < selectedID.Length; i++) { int id = Convert.ToInt32(selectedID[i]); RepsActive += genericWin.GetCell(id, allRepsColumn); EncoderCompareInter.Add(id + ":" + selectedDate[i]); } //find RepsAll string [] allID = genericWin.GetColumn(0, false); //unchecked (session or person don't need to be selected) for (int i = 0; i < allID.Length; i++) { int id = Convert.ToInt32(allID[i]); RepsAll += genericWin.GetCell(id, allRepsColumn); } }