Expand printRows to handle wide rows