Bug 50706 - A picker in a grid in a viewcell in a tableview does not display the selected item (Windows only)
Summary: A picker in a grid in a viewcell in a tableview does not display the selected...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-12-23 07:45 UTC by Joris Zwaenepoel
Modified: 2017-07-10 09:38 UTC (History)
4 users (show)

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

Sample project demonstrating the issue (113.61 KB, application/x-zip-compressed)
2016-12-23 07:45 UTC, Joris Zwaenepoel

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 Joris Zwaenepoel 2016-12-23 07:45:02 UTC
Created attachment 18979 [details]
Sample project demonstrating the issue

A TableView control, with a ViewCell that is a Grid containing a picker.

When used in a Windows 8.1 project, and you select an item using the picker, the selected item is not displayed.
When the app is resized, the selected item appears.

When used in a UWP project, it seems to have the same behaviour, even when not used in a grid, but also in a stacklayout or directly in a viewcell.

Example XAML:

                <Label Text="Picker in TableView+Grid+ViewCell" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                  <Label Grid.Column="0" Text="Choose" />
                  <Picker Grid.Column="1" x:Name="pickerInGridInTableView">

I just found this workaround that seems to work for me:

        private void Pckr_SelectedIndexChanged(object sender, EventArgs e)
            var p = (Picker)sender;
            p.IsVisible = false;
            p.IsVisible = true;
Comment 1 adrianknight89 2016-12-23 15:32:58 UTC
Considering TableView is going to go away eventually, I'm not sure if I'd expect a fix to this soon or at all.
Comment 2 E.Z. Hart [MSFT] 2017-02-14 20:13:32 UTC
This should be fixed in 2.3.5.
Comment 3 Saurabh Paunikar 2017-07-10 09:38:05 UTC
Verified on xamarin.form version

ScreenCast link : https://www.screencast.com/t/qO0ZUsINyz