title: want to change gridoption preselectedRows row in angular slickgrid dynamically on button click (function check);
body: <p>when the button clicked some secific row are selected using preselected grid option in angular slickgrid but if I do so gridoption preseletedrow is change but it did not show. please help me     </p>
  
  <p><strong>ts file</strong>   </p>
  
  <pre><code> arr1 = [1,2,8];    
   arr =[];
  
  ngOnInit() {   
      this.onPageLoad();   
     this.dataset = [];   
    }  
   onPageLoad(){    
      this.gridOptions = {    
        enableAutoResize: true,       // true by default    
        enableCellNavigation: true,    
        enableFiltering: true,        
        editable: true,    
        rowSelectionOptions: {    
          selectActiveRow: false,    
        },    
        preselectedRows:this.arr,    
        enableCheckboxSelector: true,    
        enableRowSelection: true,   
        };   
    }      
  check(){    
     this.gridOptions.preselectedRows =this.arr;    
   }        
  </code></pre>