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
345
Getting errir while changing the references from version 16.2 to version 17.1
posted

1.I have changed the references of my project from Infragistics v16.2 to 17.1 and after that I am getting below error

'Cannot resolve dependency to assembly 'Infragistics4.Win.UltraWinGrid.v16.2, Version=16.2.201' because it has not been preloaded. When using the ReflectionOnly APIs,dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.

Can you please confirm if 'CellClickAction' and 'SelectionTypeRecord' got obsolete in version17.1?

2.In my code I have 2 lines of code mentioned below :

wpfh:XamDataGridExten.SelectedIndicesTwoWayBound="True"

wpfh:XamDataGridExten.SelectedIndices="{Binding SelectedRows,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"

getting below error for above code as well

'Property 'SelectedIndicesTwoWayBound/ SelectedIndices' is not attachable to elements of type 'XamDataGrid'.'

  • 6365
    Offline posted

    Hello Richa,

    Thank you for the error information you have provided.

    1. The Infragistics4.Win.UltraWinGrid.v16.2 assembly is a WinForms assembly and the error might be related to the fact that the application you are using still contains references to this assembly. Please note that in order to use the XamDataGrid, you need the following WPF assemblies (more information here):
    InfragisticsWPF4.v17.1.dll
    InfragisticsWPF4.Editors.v17.1.dll
    InfragisticsWPF4.DataPresenter.v17.1.dll

    After removing all the unnecessary/old assemblies and adding the new ones, you can try to clean and rebuild the application in order to build it successfully.
    The CellClickAction and the SelectionTypeRecord properties are not obselete and are still present in the WPF 17.1 product.

    2. The SelectedIndicesTwoWayBound and the SelectedIndices properties seem to be newly introduced properties in an extended version of our XamDataGrid. The use of these properties is strongly dependent on the actual implementation of the new class that inherits the XamDataGrid and the properties themselves. Since I cannot refer to the actual code you have used, I can suggest you take a look at the following blog post that demonstrates how attached properties can be used for the XamDataGrid.

    If you have any questions, please let me know.