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
1365
New columns after update to 2016.2 sr 2019
posted

We inherit from XamDataGrid in order to provide some custom styling and event handlers.  We have updated to v16.2.20162.2109 and after the update our grids now have extra Checkbox columns called Selected and IsDirty.

If I switch our custom grid to the standard XamDataGrid, the columns go away.  I boiled it down to the point where I simply use the inherited control causes the problem.  This did not occur prior to the 2109 build (we were on 2045 previously).

Here is the code of the control's xaml file:

<igDP:XamDataGrid x:Class="SSI.Windows.Simulation.Conjoint.CustomXamDataGrid"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:SSI.Windows.Simulation.Conjoint"
xmlns:igDP="http://infragistics.com/DataPresenter"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="300">
</igDP:XamDataGrid>

Here is the code behind:

namespace SSI.Windows.Simulation.Conjoint
{
public partial class CustomXamDataGrid : Infragistics.Windows.DataPresenter.XamDataGrid
{
public CustomXamDataGrid ()
{
InitializeComponent();
}
}
}

Here is an simplified example of where the control is used:

<local:CustomXamDataGrid AutoFit="False"
DataSource="{Binding Levels, Mode=TwoWay}">
<local:CustomXamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AutoGenerateFields="False"
AllowDelete="False"
AllowFieldMoving="No"
AllowClipboardOperations="All"
SelectionTypeRecord="Single"
SupportDataErrorInfo="RecordsAndCells"
DataErrorDisplayMode="ErrorIconAndHighlight" />
</local:CustomXamDataGrid.FieldLayoutSettings>
<local:CustomXamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:Field Name="Label">
<igDP:Field.Settings>
<igDP:FieldSettings AllowEdit="True"
Width="Auto"
CellClickAction="SelectCell" />
</igDP:Field.Settings>
</igDP:Field>
<igDP:Field Name="Value"
Visibility="Collapsed"
Width="Auto">
<igDP:Field.Settings>
<igDP:FieldSettings AllowEdit="True"
EditAsType="{x:Type system:Double}"
CellClickAction="SelectCell">
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
</igDP:FieldLayout>
</local:CustomXamDataGrid.FieldLayouts>
</local:CustomXamDataGrid>

What can I do?

Parents
No Data
Reply
  • 17475
    Offline posted

    Hello Walter,

    Based on the details you have shared, the fields which appeared in the XamDataGrid in your application is related to the custom implementation of the control and a change applied in the latest service release.

    The best way for me to assist you is if you provide isolated sample which illustrates the issue. If you are unable to provide an isolated sample I may be able to give suggestions if you provide the code for your custom XamDataGrid implementation. To keep the custom code private, you can upload the sample to the private case CAS-182785-G9V2P7 I have created on your behalf. You can access the support ticket from the Support Activity section.

    Please let me know if you have any questions.

Children
No Data