To prevent adding or deleting rows, use Set Edit Lock:
dt << Set Edit Lock( "add rows", "delete rows");
See Prevent Changes to a Data Table for more information about preventing other data table operations.