Fix #2394 (selection): make enableRowSelection dynamic