fixed bug calling rowGrid instead of colGrid; removed explicit grid type check, now just checking if grid rows/cols exist