title: Xamarin Listview grouping
body: <p>I am dealing with a listview in xamarin.froms. I can easily populate the listview with a listitem for each record:</p>
  
  <pre><code>[
      {"cat":1, "name":"alpha"},
      {"cat":1, "name":"beta"},
      {"cat":1, "name":"gamma"},
      {"cat":2, "name":"john"},
      {"cat":2, "name":"william"},
      {"cat":2, "name":"smith"},
      {"cat":2, "name":"steve"},
      {"cat":3, "name":"abc"},
      {"cat":3, "name":"xyz"}
  ]
  </code></pre>
  
  <p>//9 Items in listview from this json source</p>
  
  <p><a href="https://i.stack.imgur.com/vJ1lC.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/vJ1lC.jpg" alt="enter image description here"></a></p>
  
  <p>But what I want is to group all the items on some key value, say <code>"cat"</code> here and achieve something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/BK1Im.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/BK1Im.jpg" alt="ListView with grouping"></a></p>
  
  <p>Any suggestion or approach toward this would be appreciated.</p>