Hi,
We are using 2010.03. And for below layout (with 60 fields) moving columns programatically is very slow, however drag/drop is much faster.
Noticed that the the performance is much better when removing LabelTextWrapping="Wrap" field settings.
Can someone please let me know (a) why this setting is causing when calling Move and (b) what other options/settings that can posibly changed to improve the performance of column moving?
Thanks in advance.
Muthu
----------
<igDP:XamDataGrid VirtualizingStackPanel.IsVirtualizing="False" SnapsToDevicePixels="True" Theme="Office2k7Blue" AutoFit="False" Name="xamDataGrid1" Grid.Row="0" ScrollingMode="Immediate" BindToSampleData="True" GroupByAreaLocation="None" AllowDrop="True" Height="292" Width="549">
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igEditors:XamTextEditor}" BasedOn="{x:Static igThemes:EditorsOffice2k7Blue.XamTextEditor}"> <Setter Property="TextWrapping" Value="WrapWithOverflow"/> <Setter Property="Margin" Value="2"/> <Setter Property="BorderThickness" Value="0"/> </Style> </igDP:XamDataGrid.Resources>
<igDP:XamDataGrid.ViewSettings> <igDP:GridViewSettings UseNestedPanels="True"></igDP:GridViewSettings> </igDP:XamDataGrid.ViewSettings>
<igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings FieldMovingMaxRows="1" ExpansionIndicatorDisplayMode="CheckOnDisplay" AutoGenerateFields="False" HeaderPrefixAreaDisplayMode="FieldChooserButton" AutoFitMode="Never" SupportDataErrorInfo="RecordsAndCells" DataErrorDisplayMode="None" FixedFieldUIType="None"/> </igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings AllowCellVirtualization="False" CellWidth="61" LabelClickAction="Nothing" CellClickAction="SelectCell" AllowResize="True" LabelTextAlignment="Center" LabelTextWrapping="Wrap"> </igDP:FieldSettings> </igDP:XamDataGrid.FieldSettings> </igDP:XamDataGrid>
-------------------------
Hello Muthu,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post and I suggest you see this blog:
http://blogs.infragistics.com/blogs/kiril_matev/archive/2010/10/26/optimizing-xamdatagrid-performance.aspx
where it is described what you can do in order to optimize the performance of the XamDataGrid.
Feel free to write me if you have further questions.