SfDataGrid moving alone

I'm the SfGrid that has 12 columns and the horizontal Scroll is automatically generated. When I use the scroll to move to the other columns the grid keeps moving alone forwards and backwards without stopping.


        <pulltoRefresh:SfPullToRefresh x:Name="pullToRefresh" Refreshing="pullToRefresh_Refreshing" ProgressBackgroundColor="{StaticResource Blue}" RefreshContentHeight="50" PullingThreshold="150" RefreshContentWidth="50" TransitionMode="SlideOnTop" IsRefreshing="{Binding IsRefreshing}" AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1">
            <pulltoRefresh:SfPullToRefresh.ProgressStrokeWidth>
                <OnPlatform x:TypeArguments="x:Double">
                    <OnPlatform.Android>6</OnPlatform.Android>
                    <OnPlatform.iOS>2</OnPlatform.iOS>
                </OnPlatform>
            </pulltoRefresh:SfPullToRefresh.ProgressStrokeWidth>
            <pulltoRefresh:SfPullToRefresh.PullableContent>
                <syncfusion:SfDataGrid x:Name="listView" ColumnSizer="Auto" AutoGenerateColumns="false" ItemsSource="{Binding Apolices}" SelectionMode="Single" >
                    <syncfusion:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
                        <syncfusion:GridTextColumn HeaderText="Nome" MappingName="Nome" />
                        <syncfusion:GridTextColumn HeaderText="Vig_Inicial" MappingName="Vig_Inicial" />
                        <syncfusion:GridTextColumn HeaderText="Apólice" MappingName="Apolice" />
                        <syncfusion:GridTextColumn HeaderText="Pr_Líquido" MappingName="Pr_Liquido" />
                        <syncfusion:GridTextColumn HeaderText="Tipo" MappingName="Tipo" />
                        <syncfusion:GridTextColumn HeaderText="Ramo" MappingName="Ramo" />
                        <syncfusion:GridTextColumn HeaderText="Cia" MappingName="Cia" />
                        <syncfusion:GridTextColumn HeaderText="Código" MappingName="Codigo" />
                        <syncfusion:GridTextColumn HeaderText="Cancelada Em" MappingName="Cancelada_Em" />
                         <syncfusion:GridTextColumn HeaderText="Vig_Final" MappingName="Vig_Final" />
                        <syncfusion:GridTextColumn HeaderText="Arq_Morto" MappingName="Arq_Morto" />
                        <syncfusion:GridTextColumn HeaderText="Tela_Itens" MappingName="Tela_Itens" />
                        <syncfusion:GridTextColumn HeaderText="Referencia" MappingName="Referencia" />
                    </syncfusion:SfDataGrid.Columns>
                </syncfusion:SfDataGrid>
            </pulltoRefresh:SfPullToRefresh.PullableContent>
        </pulltoRefresh:SfPullToRefresh>
  

1 Reply

SK Suriya Kalidoss Syncfusion Team April 30, 2018 12:29 AM UTC

Hi Jhonatan, 
Thank You for using Syncfusion Products  
 We had analyzed your query. We had tested the sample with the code details that you had given, and sample is working from our side. We recommend trying using column sizer as star in the sample to overcome grid moving forward and backward. Please refer the below code snippet 
   <sfgrid:SfDataGrid x:Name="dataGrid" 
                             AutoGenerateColumns="false" 
                             ColumnSizer="Star" 
                             HeaderRowHeight="48" 
                             RowHeight="48" 
                             VerticalOverScrollMode="None" 
                             SelectionMode="Single"> 
 
   We have attached working sample and video you can download it from the below links.If your requirement deviates from us, could you please modify the given sample to reproduce the issue from your side or send the sample that you have been facing issue which will useful to sort the issue. If problem, persist we would also like to What SfDataGrid NuGet Version and android device are you using for the sample? 
 
 
Regards, 
Suriya K 


Loader.
Up arrow icon