disable gridview for non selected layers