is row selected?

How can you see if a certain row is selected or not?

Or rather, can you programmatically deselect rows?

There is no api for any of two above use-cases.

To know is row selected or not you can use getSelectedId API and check is ID in question is included in the returned list