title: Xamarin Listview Dynamic Column Width
body: <p>I wonder if there is a proper approach to solve this situation. Imagine you are getting dynamic data into something like this:</p>
  
  <pre><code> &lt;ListView HasUnevenRows="True" 
                ItemsSource="{Binding RecentSurveysList} "
                SelectedItem="{Binding Selected, Mode=TwoWay}"
                ItemSelected="ListView_OnItemSelected"&gt;
  
          &lt;ListView.ItemTemplate&gt;
  
              &lt;DataTemplate&gt;
                  &lt;ViewCell&gt;
                      &lt;StackLayout Orientation="Horizontal" Padding="20"&gt;
                          &lt;Label Text="{Binding Id}"  VerticalOptions="Start" Margin="0, 0 ,60 ,0"&gt;&lt;/Label&gt;
                          &lt;Label Text="{Binding Date}" HorizontalOptions="Start" VerticalOptions="Center" Margin="0, 0 ,20 ,0"&gt;&lt;/Label&gt;
                          &lt;Label Text="{Binding RecentLocationName}" HorizontalOptions="Start" VerticalOptions="Center" Margin="0, 0 ,20 ,0"&gt;&lt;/Label&gt;
                          &lt;Label Text="{Binding ClientFirstName}" HorizontalOptions="Start" VerticalOptions="Center" Margin="0, 0 ,20 ,0"&gt;&lt;/Label&gt;
                          &lt;Label Text="{Binding ClientLastName}" HorizontalOptions="Start" VerticalOptions="Center" Margin="0, 0 ,20 ,0"&gt;&lt;/Label&gt;
                      &lt;/StackLayout&gt;
                  &lt;/ViewCell&gt;
              &lt;/DataTemplate&gt;
  
          &lt;/ListView.ItemTemplate&gt;
  
      &lt;/ListView&gt;
  </code></pre>
  
  <p><strong>Problem N1</strong></p>
  
  <p>Now ID can be 123 or 34816349714 and the problem is that the data for the next cells is shifted so everything is off grid.</p>
  
  <p><strong>Problem N2</strong></p>
  
  <p>I want to set a column title for each colum on top.</p>
  
  <p>Maybe listview wasn't the best choice but does any one have a ready approach they use for this scenario? Thanks.</p>