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
830
Bug Report: Unable to increase 1st column size when grid has 2 columns and last one is extended
posted

<Window x:Class="Demo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" xmlns:igDP="http://infragistics.com/DataPresenter">
    <Grid>
        <igDP:XamDataGrid DataSource="{Binding People}"  GroupByAreaLocation="None">

            <igDP:XamDataGrid.FieldLayoutSettings>
                <igDP:FieldLayoutSettings AutoGenerateFields="False" AutoArrangeCells="Never" AutoFitMode="ExtendLastField" AllowDelete="True" AllowFieldMoving="No" />
            </igDP:XamDataGrid.FieldLayoutSettings>
           
            <igDP:XamDataGrid.FieldLayouts>
                <igDP:FieldLayout>
                    <igDP:UnboundField Column="0" Name="FirstName" Label="First Name" BindingPath="FirstName" Width="Auto" />
                    <igDP:UnboundField Column="1" Name="LastName" Label="Last Name" Width="Auto" BindingPath="LastName" />
                    <igDP:UnboundField/>
                </igDP:FieldLayout>
            </igDP:XamDataGrid.FieldLayouts>
        </igDP:XamDataGrid>
    </Grid>
</Window>

 

If you try to increase the size of the first colum by dragging the header splitter to the right then it works the first time.

If you try to do it again (or decrease the size by dragging and then try to increase it again by dragging) then you see that it doesn't work.

 

This problem doesn't happen when you have 3 columns (don't ask me why) and it is related to the ExtendLastField.

 

It happens with both NetAdvantage 2009.2 and 2010.1 with April SR

 

Thanks.