title: Nested Grid TapGestureRecognizer not working?
body: <p>I'm new in Xamarin. I have been trying to get tap on every row of my grid but unfortunately not working. I have a <code>CollectionView</code> with A grid and inside this grid on row=1 I have another <code>CollectionView</code> with a new Grid.</p>
  <p>My Question is when I tap on the rows onlu row=0 and row=2 is firing , not row=1 where I have Another <code>COllectionView</code>. I have attached my code bellow.</p>
  <pre><code>&lt;RefreshView   Command=&quot;{Binding LoadAlertsCommand}&quot; IsRefreshing=&quot;{Binding IsBusy, Mode=TwoWay}&quot; IsVisible=&quot;{Binding RefreshViewVisible}&quot;&gt;
          &lt;CollectionView x:Name=&quot;AlertsListView&quot;
                  ItemsSource=&quot;{Binding Alerts}&quot;
                  SelectionMode=&quot;None&quot; &gt;
                  &lt;CollectionView.ItemTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;SwipeView x:DataType=&quot;model:AlertsTable&quot; Threshold=&quot;250&quot;&gt;
                              &lt;SwipeView.RightItems&gt;
                                  &lt;SwipeItems Mode=&quot;Execute&quot;&gt;
                                      &lt;SwipeItem Text=&quot;Delete&quot;
                                       BackgroundColor=&quot;#ff453a&quot;
                                  Command=&quot;{Binding Source={RelativeSource AncestorType={x:Type local:AlertViewModel}}, Path=DeleteCommand}&quot;      
                                  CommandParameter=&quot;{Binding .}&quot;/&gt;
                                  &lt;/SwipeItems&gt;
                              &lt;/SwipeView.RightItems&gt;
                              &lt;Grid Padding=&quot;15,5,15,0&quot; x:DataType=&quot;model:AlertsTable&quot; x:Name=&quot;Grid1&quot; BackgroundColor=&quot;Black&quot;&gt;
                                  &lt;Grid.RowDefinitions&gt;
                                      &lt;RowDefinition Height=&quot;*&quot; /&gt;
                                      &lt;RowDefinition Height=&quot;Auto&quot; /&gt;
                                      &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
                                  &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
                              &lt;/Grid.RowDefinitions&gt;
  
                                  &lt;Grid.ColumnDefinitions&gt;
                                      &lt;ColumnDefinition Width=&quot;*&quot; /&gt;
                                      &lt;ColumnDefinition Width=&quot;*&quot; /&gt;
                                      &lt;ColumnDefinition Width=&quot;Auto&quot; /&gt;
                                      &lt;ColumnDefinition Width=&quot;Auto&quot;/&gt;
                                  &lt;/Grid.ColumnDefinitions&gt;
  
                              &lt;BoxView Color=&quot;#292929&quot; Grid.Column=&quot;0&quot; Grid.Row=&quot;0&quot; Grid.ColumnSpan=&quot;4&quot;/&gt;
                              &lt;Label x:Name=&quot;TextLabel&quot; Grid.Row=&quot;0&quot; Grid.Column=&quot;0&quot;  Text=&quot;{Binding title}&quot; TextColor=&quot;White&quot; FontSize=&quot;20&quot; FontAttributes=&quot;Bold&quot;/&gt;
                                  &lt;Label x:Name=&quot;RightTextLabel&quot; Grid.Row=&quot;0&quot; Grid.Column=&quot;1&quot; FontSize=&quot;15&quot; Text=&quot;{Binding date}&quot; HorizontalOptions=&quot;Center&quot;  VerticalOptions=&quot;CenterAndExpand&quot;  TextColor=&quot;White&quot;/&gt;
                                  &lt;Label Text=&quot;{x:Static fontAwesome:FontAwesomeIcons.Circle}&quot;
                                                 IsVisible=&quot;{Binding wasRead}&quot;
                                                 Grid.Row=&quot;0&quot; Grid.Column=&quot;3&quot;
                                                 HorizontalOptions=&quot;Center&quot;
                                                 VerticalOptions=&quot;CenterAndExpand&quot;
                                                 FontSize=&quot;Medium&quot;
                                                 TextColor=&quot;White&quot;
                                                 FontFamily=&quot;fa5r&quot;/&gt;
                                  &lt;!--&lt;Frame &gt;--&gt;
                                  &lt;CollectionView x:Name=&quot;ConditionsListView&quot;
                                               ItemsSource=&quot;{Binding alertmetadata.Conditions}&quot;
                                               SelectionMode=&quot;None&quot; Grid.Row=&quot;1&quot; Grid.ColumnSpan=&quot;4&quot; Grid.Column=&quot;0&quot; HeightRequest=&quot;120&quot;&gt;
                                      &lt;CollectionView.ItemTemplate&gt;
                                          &lt;DataTemplate&gt;
                                              &lt;Grid x:DataType=&quot;model:AlertConditionEx&quot;&gt;
                                                  &lt;Grid.RowDefinitions&gt;
                                                      &lt;RowDefinition Height=&quot;Auto&quot; /&gt;
                                                  &lt;/Grid.RowDefinitions&gt;
  
                                                  &lt;Grid.ColumnDefinitions&gt;
                                                      &lt;ColumnDefinition Width=&quot;*&quot; /&gt;
                                                      &lt;ColumnDefinition Width=&quot;Auto&quot; /&gt;
                                                      &lt;ColumnDefinition Width=&quot;*&quot; /&gt;
                                                      &lt;ColumnDefinition Width=&quot;Auto&quot;/&gt;
                                                  &lt;/Grid.ColumnDefinitions&gt;
                                                  &lt;Label Text=&quot;{Binding LeftItem.NS}&quot; Grid.Row=&quot;0&quot; Grid.Column=&quot;0&quot; HorizontalOptions=&quot;Center&quot; VerticalOptions=&quot;CenterAndExpand&quot; TextColor=&quot;White&quot;/&gt;
                                                  &lt;Image Source=&quot;{x:Binding OS , Converter={StaticResource ImageConverter}}&quot; Grid.Row=&quot;0&quot; Grid.Column=&quot;1&quot; HorizontalOptions=&quot;Center&quot; VerticalOptions=&quot;CenterAndExpand&quot;
                                                 HeightRequest=&quot;40&quot;&gt;&lt;/Image&gt;
                                                  &lt;Label Text=&quot;{Binding RightItem.NS}&quot; Grid.Row=&quot;0&quot; Grid.Column=&quot;2&quot; HorizontalOptions=&quot;Center&quot; VerticalOptions=&quot;CenterAndExpand&quot; TextColor=&quot;White&quot;/&gt;
                                                  &lt;Image Source=&quot;{x:Binding OS , Converter={StaticResource ChartImageConverter}}&quot; Grid.Row=&quot;0&quot; Grid.Column=&quot;3&quot;
                                                 HeightRequest=&quot;40&quot;&gt;&lt;/Image&gt;
                                              &lt;/Grid&gt;
                                          &lt;/DataTemplate&gt;
                                      &lt;/CollectionView.ItemTemplate&gt;
                                  &lt;/CollectionView&gt;
                                  &lt;Label Text=&quot;...&quot; TextColor=&quot;White&quot; FontAttributes=&quot;Bold&quot; FontSize=&quot;Large&quot; Grid.Row=&quot;2&quot; Grid.Column=&quot;0&quot; Grid.ColumnSpan=&quot;4&quot; IsVisible=&quot;{Binding alertmetadata.ThreeDots}&quot; HorizontalTextAlignment=&quot;Center&quot; HorizontalOptions=&quot;CenterAndExpand&quot;/&gt;
  
                              &lt;BoxView VerticalOptions=&quot;FillAndExpand&quot;  HeightRequest=&quot;1&quot; Color=&quot;#59595b&quot; 
                                       Grid.Row=&quot;3&quot; Grid.Column=&quot;0&quot; Grid.ColumnSpan=&quot;4&quot;/&gt;
                              &lt;!--&lt;/Frame&gt;--&gt;
  
                                  &lt;Grid.GestureRecognizers&gt;
                                      &lt;TapGestureRecognizer
                                  NumberOfTapsRequired=&quot;1&quot;
                                  Command=&quot;{Binding Source={RelativeSource AncestorType={x:Type local:AlertViewModel}}, Path=AlertsTapped}&quot;       
                                  CommandParameter=&quot;{Binding .}&quot;&gt;
                                      &lt;/TapGestureRecognizer&gt;
                                  &lt;/Grid.GestureRecognizers&gt;
                              &lt;/Grid&gt;
                          &lt;/SwipeView&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/CollectionView.ItemTemplate&gt;
          &lt;/CollectionView&gt;
      &lt;/RefreshView&gt;
  </code></pre>