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 details about preventing other data table operations.
dt << Set Edit Lock( "add rows", "delete rows");