Invalid number of rows in section

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

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)

             BindingContext = model;  

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

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

Tags: , ,

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

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

Post Answer

Will Bitcoin Tipping become a new Internet Culture?

Please share our story! THANK YOU!