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.

Parents
  • 69686
    posted

    Hello,

    This seems to be happening because of the last unbound field that you are using. As you have set AutoArrangeCells to never and not set its position, this field will overlap with the other fields.

    If you set its column property like this:

                        <igDP:UnboundField Column="2"/>

    then everything works correctly.

  • 830
    posted in reply to John Doe

    Hi, sorry... the last <igDP:UnboundField/> is there by mistake, still your suggestion doesn't fix the problem.

    <Window x:Class="TreeGrid.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" AutoFitMode="ExtendLastField" AllowFieldMoving="No" />
                </igDP:XamDataGrid.FieldLayoutSettings>
               
                <igDP:XamDataGrid.FieldLayouts>
                    <igDP:FieldLayout>
                        <igDP:Field Name="FirstName" Label="First Name" Width="Auto" />
                        <igDP:Field Name="LastName" Label="Last Name" Width="Auto" />
                    </igDP:FieldLayout>
                </igDP:XamDataGrid.FieldLayouts>
            </igDP:XamDataGrid>
        </Grid>
    </Window>

     

    AutoArrangeCells  is not set to Never, and the problem still happen.

    Currently your grid is horrible. We can't even work with it since it full of bugs. Even simple things are too complicated, and everytime we try to do something we encounter another bug.

Reply Children