Grid current row

Hi, I would like to ask if it is possible to get -set the current row of the grid, the "focused-highlighted" row. This is different from the selected row since it can not be unselected (you can unselect a row by clicking on it again) and it exists even if the grid has selection disabled.

Does the grid supports such functionality; 

Thank you

1 Reply

PS Pavithra Subramaniyam Syncfusion Team November 23, 2017 04:56 PM UTC

Hi Chriss, 

Thanks for contacting Syncfusion support.  

Query 1: “I would like to ask if it is possible to get -set the current row of the grid,” 
 
You can get selected row indexes by invoking `getSelectedRowIndexes` method. Please refer the below link. 
 
 
You can select row by invoking `selectRow` method, Please refer the below sample and documentation link. 
 
 
 
Query 2: “This is different from the selected row since it can not be unselected (you can unselect a row by clicking on it again)” 
 
You can clear selection by using `clearSelection` method. Please refer the below sample and documentation link. 
 
 
 
Query 3: “It exists even if the grid has selection disabled.” 
 
We are sorry for the inconvenience caused. We are not able to understand exact requirement on this query. Please provide more information on this query. 
If we misunderstood your requirement please get back to us with more information so that we can analyze based on your scenario and provide you better solution quickly?  
 
Regards, 
Pavithra S. 


Loader.
Up arrow icon