<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.
Hi,
Just to let you know that this behavior was fixed and included in the latest service release.
Thank you.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Hello, I have created support case for you: CAS-45607-KXW9WV and I will verify this behavior. I will update you in the case when I have new information. Thank you.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Sorry for the late response.
This seemed to be caused by setting the width of the Field to Auto. I did not set this in my old project and that was why I was not able to reproduce this. I have forwarded this to the Developer Support team so that they can look into this.
"Thank you" for not commenting on this thread.
This is a bug which is kinda annoying. As I mentioned already, your grid is horrible to work with.
It is very complicated, and very buggy (HINT: this is not the only bug I have encountered during the last vew days while working with your grid).
We have decided to upgrade ourselves with the new Microsoft Data Grid. It works better, less bugs, simpler and probably have better support.... Again, thank you for not responding.
BUMP