Limit number of rows in table in dialog