Current filter:
                                You should refresh the page.
                                  • Hello,
                                    I was checking out the 19.2 preview while waiting for 19.1.4/hotfix, and I came across some differences in UI behavior when using the DataGridView (only tested Android) . In this example, content below the DataGrid gets pushed out of the view. The DataGrid is in a StackLayout between a frame and grid layout that contains a button. In 19.2 the bottom grid layout is being pushed off of the view.  I'm currently using 19.1.3.  I've attached a sample project that should illustrate the issue.  To duplicate, swap the 19.1.3 and 19.2 assemblies. I posted the XAML below just in case something jumps out, and there's a quick fix I can put in place on my end.
                                    Thank you!

                                    <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="; xmlns:x="; xmlns:d="; xmlns:mc="; xmlns:dxg="clr-namespace:DevExpress.XamarinForms.DataGrid;assembly=DevExpress.XamarinForms.Grid" xmlns:vm="clr-namespace:DevExpressGrid1913" mc:Ignorable="d" x:Class="DevExpressGrid1913.MainPage"> <ContentPage.BindingContext> <vm:MyViewModel></vm:MyViewModel> </ContentPage.BindingContext> <StackLayout> <Frame BackgroundColor="White" Padding="10,10,10,10" Margin="0,0,0,0" HasShadow="False" BorderColor="LightGray"> <Grid x:Name="gridSearch" VerticalOptions="Start" HorizontalOptions="FillAndExpand"> <Grid.RowDefinitions> <RowDefinition Height="40"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="24"></ColumnDefinition> <ColumnDefinition Width="80"></ColumnDefinition> </Grid.ColumnDefinitions> <SearchBar x:Name="txtSearch" BackgroundColor="Transparent" VerticalOptions="Center" HorizontalOptions="StartAndExpand" FontSize="Small" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0"> </SearchBar> <Button x:Name="btnDone" Text="Cancel" BackgroundColor="Transparent" Grid.Column="2" Grid.Row="0"> </Button> </Grid> </Frame> <dxg:DataGridView x:Name="GridViewPrinterSelection" ItemsSource="{Binding ItemDataSource}" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> </dxg:DataGridView> <Grid> <Grid.RowDefinitions> <RowDefinition Height="40"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Button Grid.Row="0" Grid.Column="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Text="button"> </Button> </Grid> </StackLayout> </ContentPage>

                                1 Solution

                                Creation Date Importance Sort by

                                Hi Bryce,

                                Yes, we have changed the logic of DataGridView layouting in StackLayout. The StackLayout container is a specific container, which allows its children to use as much height as they want. It gives infinite height to their children on the measuring cycle. This may lead to performance issues if you have a large items source collection and DataGridView will create visual rows for all data rows. To prevent this, DataGridView always uses a fixed height, which is equal to your device screen height if it is located in StackLayout.

                                Anyway, we don't recommend using DataGridView in StackLayout. Thus it will be better to change the DataGridView container to another one, which provides a fixed height, for example, the Grid panel.

                                Feel free to contact me if you need any additional information.


                                • Bryce Lester 1 10.10.2019

                                  Hi Alex, That took care of it. Thank you.


                                • Alex Bli (DevExpress Support) 10.10.2019

                                  You are welcome.