The fix is easier than I thought. To account for the grid's index 0 being the column data, add 1 to rowCount and subtract 1 from rowIndex when creating the cell. So data is displayed like:
Row 0 == column
Row 1 == row 1-1 == row 0
...
This shouldn't cause any off-by-1 errors, since the difference is accounted for by the column data.
The fix is easier than I thought. To account for the grid's index 0 being the column data, add 1 to
rowCount
and subtract 1 fromrowIndex
when creating the cell. So data is displayed like:This shouldn't cause any off-by-1 errors, since the difference is accounted for by the column data.