Set Initially Selected Rows by objects

Hello there,

I am working with `SfGrid` and I would need to pre-select a single row according an object that matches the ones on the grid.

I checked this thread with all the information, try to use the DataBound event and SelectRows method of the Grid. But I don't know in which row the object would be. So it would be better to check by an object.

So, my question is if there is a way to search on the grid data by an object?

Regards,
Yecid Yahuita


1 Reply

RS Renjith Singh Rajendran Syncfusion Team August 16, 2021 09:15 AM UTC

Hi Yecid, 

Greetings from Syncfusion support. 

We have already documented this topic in our online documentation. You can fetch the row indexes based on your Grid’s data in RowDataBound event handler. Then use these fetched row indexes to select rows using SelectRows method in DataBound event handler. Please refer the below documentation for more details. 

Please get back to us if you need further assistance. 

Regards, 
Renjith R 





Loader.
Up arrow icon