Implemented TreeView selection setter (fixed #235)

@keerti