According to the online documentaion there is a Converter property on a Field in a XamDataGrid.
http://help.infragistics.com/Help/NetAdvantage/WPF/2007.2/CLR3.X/html/Infragistics3.Wpf.DataPresenter.v7.2~Infragistics.Windows.DataPresenter.Field~Converter.html
This property does not appear in the xaml when I attempt to use it. Am I doing something wrong? What I am trying to do is create a Y/N to True False so it can be used by a checkbox in my datagrid. I saw a couple examples that provided a new template with a checkbox inside it but I really dont want to use that approach unless I am forced too. Here is what I have so far. I just need a way to convert my 'Y' or 'N' value to check or uncheck the box.
Thanks
You need to create a convert class that implements IConverter and then instantiate it in a resources section of your xaml. You can then reference that instance in a binding.
Here is a good introduction:
http://learnwpf.com/Posts/Post.aspx?postId=05229e33-fcd4-44d5-9982-a002f2250a64
I already have the converter created and have used it many times. The problem I have is where do I use it in a binding in the infragistics grid? Generally I would use it exactly like the sample you linked too. I just can't find a way to use it on the Grid Column. As I said in my original post they have a converter property listed in the docs but I don't see it in the actual code.
So how can I tell a certain Field which converter to use?
Thank you for your response. That is exactly what I want to do but when I use that code I get this error.
The property 'Converter' does not exist in XML namespace 'clr-namespace:Infragistics.Windows.DataPresenter;assembly=Infragistics3.Wpf.DataPresenter.v7.2'.
I am using a trial version. The version number from the dll is 7.2.20072.1000. Is this property introduced in a later version, do I need the full version?
Thanks again.
Hmmm... that is strange. I know for a fact that the trial version supports this because I used it before upgrading to the full version. I'm not sure what to tell you.
Maybe you could try browsing into the library from vs. If I drill down into Infragistics3.WPF.DataPresenter.v7.2 and then Infragistics.Windows.DataPresenter and then click on the Field class, on the right I see the properties and methods for the Field.
What do you see in that list? There's no Converter?
I think your top level namespace will be a little different because of the trial.
hi thats the exact same problem i have as well and i have the full version
caroline
hi all
i reinstalled it and i discovered the converter property does exist in version 8 volumne one but not in version 7 volumne 2
The Converter properties were actually added after the release of v7.2 in a hotfix (as well as part of the v8.1release).