tableview doesn't refresh until i scroll the view

hello
when working with webservices, i have to refresh data
i did
tableview.source !null
tableview.adapter = new Adapter(data)
tableview.reloadData();
but it doesn't work from me i must scroll the tableview to see it updated

Any help

Answers

  • BerayBentesenBerayBentesen TRUniversity ✭✭✭✭

    Try following codes after setting source.

       tableView.BeginUpdates();
       tableView.ReloadRows(tableView.IndexPathsForVisibleRows, UITableViewRowAnimation.Automatic);
       tableView.EndUpdates();
    
Sign In or Register to comment.