Invalid number of rows in section

$1
=
$0
+
$1
$1 Bitcoin bounty has been announced by author.
$0 has been already awarded by author.
$1 remains available.
0

I am trying to bind a ListView to ObservableCollection. It works on both Windows Phone and Android but when trying to run it on iOS - then I get the following exception:

> MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.
> Name: NSInternalInconsistencyException Reason: Invalid update: invalid
> number of rows in section 0. The number of rows contained in an
> existing section after the update (130) must be equal to the number of
> rows contained in that section before the update (0), plus or minus
> the number of rows inserted or deleted from that section (1 inserted,
> 0 deleted) and plus or minus the number of rows moved into or out of
> that section (0 moved in, 0 moved out).

and here is my code:

     public partial class TransfersView : ContentPage
     {
         public TransfersView(TransfersViewModel model)
         {
             InitializeComponent();

             BindingContext = model;  
         }
     }


  <ListView x:Name="Transfers" ItemsSource="{Binding Transfers}">
     <ListView.ItemTemplate>
       <DataTemplate>
         <TextCell Text="{Binding Player}" />
       </DataTemplate>
     </ListView.ItemTemplate>
   </ListView>

Does anyone have any idea of what is going on here? Please help :)

Tags: , ,

0 answers - total earned - 0 BTC ($0 USD)

0
=
0
=
$0
Everyone, even non-registered users could send Bitcoin Tips to YOU if they are inspired by your answer!

Post Answer


Top 3 Tippers
Recent Tips

Will Bitcoin Tipping become a new Internet Culture?


Please share our story! THANK YOU!