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
380
igEditors:XamNumericEditor > igEditors not defined
posted

I have spent the majority of my day trying to figure out how to format the decimal fields in my DataGrid so that they are not formatted as currency.

I've run into two problems trying to use the forum as a resource to find the answers I'm looking for...

1) Most of the other posts referring to the same issue have links referring to a solution, but the links are dead or..

2) The answer lies in using 'XamNumericEditor' to change the default behavior. In all of these examples, 'igEditors' is used as the type defined as the namespace - but what Namespace?? This is never shown and I have not been able to successfully define it. 

My grid is embedded in a user control :

<UserControl

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

mc:Ignorable="d"

xmlns:igDP="http://infragistics.com/DataPresenter"

x:Class="QCP_SiteMgr.InventoryDisplay"

x:Name="UserControl"

d:DesignWidth="640" d:DesignHeight="480">

Can anyone help me with the proper references?

Parents
No Data
Reply
  • 69686
    Verified Answer
    posted

    Hello,

    This is the namespace for the Editors:

    xmlns:igEditors="http://infragistics.com/Editors".

    Another way would be to set the ValueType property of the XamCurrencyEditor to Double, like this:

            <igEditors:XamCurrencyEditor ValueType="{x:Type sys:Double}" />

    where the sys is the following namespace:

    xmlns:sys="clr-namespace:System;assembly=mscorlib"

Children