.. highlightlang:: us .. index:: GridSetSelection .. _gridsetselection: GridSetSelection ================ .. us.tag GridSetSelection NOTREADYENGLISH New330 GridSel :ref:`GridSetSelection` selects all specified cells in the data browser. .. function:: bool = GridSetSelection() bool = GridSetSelection(rmSelection) .. us.return **Return Value** *bool* is TRUE (1) if the function could set the selection and otherwise FALSE (0). .. us.params **Parameters** .. uparam:: rmSelection *rmSelection* is matrix with four columns. Each matrix row contains one selection range: Col1: First selected column, Col2: First selected row, Col3: Last selected column, Col4: Last selected row. Column and row numbering starts with 1. If invoked without the *rmSelection* parameter, the selection will be removed. .. us.comment **Comment** All functions starting with ``Grid`` access the data browser. If the browser dialog isn't open, these functions return an invalid value. .. seealso:: :ref:`overview-netcdf-browser`, :ref:`overview-netcdf-files`, :ref:`GridGetSelection` :sub:`id-856514`