<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>
<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.
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"/>
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>
<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.