Migrated row selection to TypeScript. Implemented "SelectAll" and "SelectNone".