You need to cache that data table, so it remembers how many rows there are. Instead of building a new data table with 1 row each time, do something like
dt = Session(SessionVariableNameForTable)
. Then add your new row, and cache the result again with
Session(SessionVariableNameForTable) = dt
so the changes are available the next time through.