We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date



How do I get the data for a specific row by PK or index?

There's a setRowData() method but no getRowData().



1 Reply

RR Rajapandi Ravi Syncfusion Team March 17, 2023 01:37 PM UTC

Hi Rob,

Greetings from Syncfusion support

You can get the row data for the specific row by using our Grid’s inbuilt methods. To get the specific rowData 1st you need to get the row element by using the getRowByIndex(0) and after that you need to pass the tr element to the getRowInfo() method of Grid. Please refer the below code example and sample for more information.


var rowElement = grid.getRowByIndex(0); //pass the specific row index to get the row


var rowData = grid.getRowInfo(rowElement).rowData //pass the tr element to get the rowData


API: https://ej2.syncfusion.com/documentation/api/grid/#getrowbyindex



Rajapandi R

Live Chat Icon For mobile
Up arrow icon