Is there a way to change the maximum rows for the list dynamically?