Hi,
how can I add the new xamColorPicker in a Cell of a Grid. Id' like to have it in each Cell of a column. Is this possible?
Thanks for helping!Gawain
Hello Gawain,
You can host a xamColorPicker just like any control in a XamDataGrid's cell. You can see samples of putting an Image in a Cell in the XamFeatureBrowser samples, or you can use this blog post by Andrew Smith : http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/03/27/hosting-wpf-controls-in-a-xamdatagrid-cell.aspx
the sample is not really working with the latest versions. Can you please give me the basic code structure for my issue?
Is it possible to tell us what is not working with the latest versions? The host editor is an inherited ValueEditor and the samples in the XamFeatureBrowser are updated with every version.
the sample still uses version 9.1, which I don't have. After importing 10.1 into the project I get the following compiling error:
Error 1 FieldSettings.EditorStyle's TargetType setting can only be null or a type that derives from ValueEditor or is a base class of ValueEditor, ControlHostEditor is invalid.Parametername: FieldSettings.EditorStyle ...\HostAnyControl\HostAnyControl\Window1.xaml 61 37 HostAnyControl
I have attached a sample project with a XamColorPicker inside a XamDataGrid's cell