How can I get the row index of the grid?

Hi

I can't speak English. So I use Google Translate.
Please understand if the explanation is not natural.

During development I encountered a situation where I needed to get the index of the selected row in the grid.
I want to get the selected row index at any time.
For example, I want to get the selected row index when a button is clicked.

Any help on how to do it would be appreciated.

3 Replies 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team September 24, 2020 02:16 PM UTC

Hi JaeHyeong, 

Greetings from Syncfusion support. 

We have validated your query and you can get the Selected row index by using the GetSelectedRowIndexes method and to get cell indexes, you can use GetSelectedRowCellIndexes method. Please find the below API reference for your reference. 


Please get back to us if you need further assistance. 

Regards, 
Jeevakanth SP. 


Marked as answer

JJ JaeHyeong Jang September 28, 2020 02:00 AM UTC

Thank you very much.
I'll try as you tell.


JP Jeevakanth Palaniappan Syncfusion Team September 28, 2020 05:15 AM UTC

Hi JaeHyeong, 

Thanks for the update. Please get back to us if you need further assistance. 

Regards, 
Jeevakanth SP. 


Loader.
Up arrow icon