Bug 8874 - RowSelected is not triggered when implementing DraggingEnded
Summary: RowSelected is not triggered when implementing DraggingEnded
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 6.1.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-12-10 16:06 UTC by Allie Miller
Modified: 2012-12-11 06:22 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Test project (14.46 KB, application/zip)
2012-12-10 16:06 UTC, Allie Miller

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Allie Miller 2012-12-10 16:06:14 UTC
Created attachment 3078 [details]
Test project

When attempting the attached project, the RowSelected not firing.

In FirstViewController.cs, implemented DraggingEnded

public override void ViewDidLoad ()
base.ViewDidLoad ();

// Set Data Source
tableView.Source = new DataSource ();

// Delegation
tableView.DraggingEnded += delegate (object sender, DraggingEventArgs e) {

Console.WriteLine ("offset = " + tableView.ContentOffset.Y.ToString ());

If you disable DraggingEnded, RowSelected is fired. So it seems to be an issue with DraggingEnded

After using ItemSelected, the error "no suitable method found to override".

System/Version Information
MonoDevelop 3.0.5
Installation UUID: 142c3f51-8fcc-4663-a483-1efbe76395bd
Mono 2.10.9 (tarball)
GTK 2.24.10
GTK# (
Package version: 210090011
Mono for Android: 4.2.7
Android SDK: /Users/jtheerawee/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
Java SDK: /usr
Apple Developer Tools:
Xcode 4.5.2 (1847)
Build 4G2008a
Monotouch: 6.0.6
Build information:
Release ID: 30005000
Git revision: e159cf083bd327933166819d94245298898d6e3d
Build date: 2012-10-24 16:43:06+0000
Xamarin addins: eea2ed91ae8dd242b281d5ec8f6c2fbc63b4cd3d
Operating System:
Mac OS X 10.8.2
Darwin MBP.local 12.2.0 Darwin Kernel Version 12.2.0
Sat Aug 25 00:48:52 PDT 2012
root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-12-11 06:22:51 UTC
You can't mix events and (objc) delegates, they're implemented using the same underlying mechanism. This means that if you attach events after setting a delegate, the delegate will be replaced, and if you set the delegate after attaching events, the events won't fire anymore.

The fix you need to do is to override DraggingEnded in your DataSource class instead of handling the DraggingEnded event.