clearAll
removes all items from the component
function clearAll( // optional, if set to true allows preserving some parameters of a data view soft?: boolean): void
Example
Section titled “Example”datagrid.clearAll();
also check the next samples: