Bug 214 - Grouped TableView RowSelected
Summary: Grouped TableView RowSelected
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 4.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-07 06:02 UTC by Berndt H.
Modified: 2011-08-08 11:12 UTC (History)
2 users (show)

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


Attachments
RowSelected checks more cells (13.29 KB, application/zip)
2011-08-07 06:02 UTC, Berndt H.
Details


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:
Status:
RESOLVED INVALID

Description Berndt H. 2011-08-07 06:02:55 UTC
Created attachment 77 [details]
RowSelected checks more cells

Sample attached. Deploy app. Select any row (RowSelected sets Checkmark). Scroll down -> other cells are also selected (if you select the first ow, the first non visible row will also be checked)
Comment 1 Berndt H. 2011-08-07 15:31:04 UTC
Please create the view on the class level when you try the sample...

SomeDataView root = new SomeDataView();


public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
window.AddSubview (root.View);
...
Comment 2 Rolf Bjarne Kvinge [MSFT] 2011-08-08 11:12:15 UTC
You can't store state in cells, they're reused.

In your TableItem class you must store the selected state, and set it accordingly in BasicTableViewSource.GetCell (and RowSelected).