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

Data grid row selection

Hi, Im using SfDataGrid to show some data, the problem is that, when I select a row it goes to the event method called 

but when I check the selected item or selected index, they are null and -1.

I wonder, is there any way to get the data or the object for the row Ive selected? or Am I doing something wrong?

Thanks in advance for your answeer 

1 Reply

AN Ashok N Syncfusion Team August 8, 2016 08:41 AM UTC

Hi Arturo,  

Thank you for contacting Syncfusion support. 

We have checked in your query, SelectionChanging event occurs before processing the selection to particular row. You can achieve your requirement by handling SelectionChanged event. This event will occurs once the selection process has been completed for particular row. Please refer the below UG link to get more information about selection in our SfDataGrid. 


Live Chat Icon For mobile
Up arrow icon