Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
985
xamdatagrid vertical scrollbar
posted

Hello team,

I am using a xamdatagrid which has its datasource bound to a property in the ViewModel class. When I add items to the list, the xamdatagrid expands adding more rows to the bottom. I dont want the size of the grid to change. I instead want a vertical scroll bar to appear. Below is the xaml code for the grid:

<igWPF:XamDataGrid HorizontalAlignment="Left" Margin="6,69,0,6" Name="xamDataGrid2" Width="223" DataSource="{Binding Path=ImportedTypes, UpdateSourceTrigger=PropertyChanged}" AutoFit="False" DataContext="{Binding}" Theme="IGTheme" GroupByAreaLocation="None" ScrollBehaviorOnListChange="Default" ScrollingMode="DeferredWithScrollTips">
<igWPF:XamDataGrid.FieldSettings>
<igWPF:FieldSettings AutoSizeOptions="None" LabelTextAlignment="Left" LabelTextTrimming="CharacterEllipsis" AllowLabelVirtualization="False" />
</igWPF:XamDataGrid.FieldSettings>
<igWPF:XamDataGrid.FieldLayouts>
<igWPF:FieldLayout>
<igWPF:FieldLayout.Fields>
<igWPF:Field Name="Excluded" Label="Excluded" Width="75" Column="1">
</igWPF:Field>
<igWPF:Field Name="Type" Label="Type" Width="75" Column="2">
<igWPF:Field.Settings>
<igWPF:FieldSettings EditorType="{x:Type igWPF:XamNumericEditor}" >
<igWPF:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igWPF:XamNumericEditor}">
<Setter Property="HorizontalContentAlignment" Value="Left"/>
</Style>
</igWPF:FieldSettings.EditorStyle>
</igWPF:FieldSettings>
</igWPF:Field.Settings>
</igWPF:Field>
</igWPF:FieldLayout.Fields>
</igWPF:FieldLayout>
</igWPF:XamDataGrid.FieldLayouts>
</igWPF:XamDataGrid>

  • 138253
    Offline posted

    Hello Sherif,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello Sherif,

     

    Thank you for your post I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamDataGridAddNew.zip