Ok so Im iterating over a list and instead of inserting values into cells horizontally, im putting the values in the cells vertically.
It works fine for the first time through the list but when I go in the list the 2nd time it blows away the first list and replaces it in the 2nd column.
if i remove the row= 0 at the end of the loop, it look like:
val 1
val 2
val 1
val 2
=========
int row = 0;
int k = 1;
for (List dataList: someList) {
Row myRow = sheet.createRow ((short)row);
myRow.createCell(k).setCellValue (dataList.getVal()));
myRow = sheet.createRow ((short)row++);
myRow.createCell(k).setCellValue (dataList.getSecVal()));
myRow = sheet.createRow ((short)row++);
k++;
row = 0;
}