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 (show other bugs)
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)

See Also:
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

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

Note You need to log in before you can comment on or make changes to this bug.