depends on what you are doing in your script. In case you are using table row/cell display, you could probably use table object's deleterow, insertRow functions. Refere these msdn links - insert row / insert celldelete row / delete cell