The splice() method changes the contents of a grid by removing existing records and/or adding new records.
- Start index - Index at which to start changing the grid (with origin 0). If greater than the total number of records in the grid, actual starting index will be set to the total number of records. If negative, changes will begin that many elements from the end of the grid records (with origin 1).
- Delete count - A number indicating the number of grid records to remove. If set to 0, no records are removed. If set to greater than the number of records left in the grid starting at the Start index, then all of the records through the end of the grid will be deleted. If omitted, all of the records beginning with
Startindex on through the end of the grid will be deleted.