when changing property value programmatically, the row background style selector does not apply. You need to scroll the data or resize the control, then the change applies.
The selector works when editing the datagrid value trough the UI, but does not work when changing the value programmatically.