title: Dynamically Controlling GridView Item's IsItemClickEnable Property
body: <p>I populated a gridview with data from a list based on</p>
  
  <pre><code> public class Players
      {
          public int id { get; set; }
          public string level { get; set; }
          public string image { get; set; }
          public List&lt;string&gt; name { get; set; }
      }
  </code></pre>
  
  <p>Using </p>
  
  <pre><code> players = await Operations.GetPlayersAsync(Currentlevel); 
              ViewPlayers.ItemsSource = players;
  </code></pre>
  
  <p>Xaml of GridView</p>
  
  <pre><code>&lt;DataTemplate x:Key="ImageGalleryDataTemplate"&gt;
       &lt;Border Background="#FF939598"&gt;
         &lt;Image Margin="20,20,20,20" Source="{Binding image}" Height="250" Width="150" Stretch="Fill"/&gt;
       &lt;/Border&gt;
  &lt;/DataTemplate&gt;
  
  &lt;GridView x:Name="ViewPlayers" IsItemClickEnabled="True"  
            ItemTemplate="{StaticResource ImageGalleryDataTemplate}" SelectionMode="None" ItemClick="PlayerClick"&gt;
  &lt;/GridView&gt;
  </code></pre>
  
  <p>The Grid View loads data properly, and all item are displayed, and I can click them, and do necessary task.</p>
  
  <p>I have a Sqllite database in which it stores data of format</p>
  
  <pre><code>public class userData
      {[PrimaryKey, AutoIncrement]
          public int id { get; set; }
  
          public bool answered { get; set; }
        [Unique]  public string pid { get; set; }
          public string answer { get; set; }
      }
  </code></pre>
  
  <p>What I try to achieve is that to disable the <strong>IsItemClickEnabled</strong> Property of the <strong>Players</strong> (which is populated using <strong>GetPlayersAsync</strong> function) which is marked as answered (bool value <strong>true</strong>). I am able to get data from Sqllite data, compare and get which all items to be disabled <strong>(Player id)</strong>.
  But I am not able to disable the particular <strong>players</strong> <strong>IsItemClickEnabled</strong> property.</p>
  
  <p>I searched MSDN, Stackoverflow with possible keywords I can, but couldn't find a solution to dynamically control selected items in ItemsSource of GridView or ItemView. </p>