I would like the add row to have some gray helper text like <Type a label>. It would only appear in the add row, and would only appear if the cell is empty. How can that be done?
Hello Walter,
Thank you for contacting Infragistics. You can use a conditional MultDataTrigger for each field accordingly. This topic was previously discussed and answered here: Text in Add New Record Row
eg.
<igDP:FieldLayout.Fields> <igDP:Field Name="Name" > <igDP:Field.Settings> <igDP:FieldSettings > <igDP:FieldSettings.EditorStyle > <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions > <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Text}" Value="" /> <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type igDP:DataRecordPresenter}}, Path=IsAddRecord}" Value="True" /> </MultiDataTrigger.Conditions> <MultiDataTrigger.Setters> <Setter Property="NullText" Value="Add name" /> <Setter Property="FontStyle" Value="Italic" /> <Setter Property="Opacity" Value="0.4" /> </MultiDataTrigger.Setters> </MultiDataTrigger> </Style.Triggers> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
https://ko.infragistics.com/community/forums/p/53736/277938.aspx#277938
Let me know if you have any questions.
Sorry for not getting back to this sooner. I have some fields which are text fields and this is working well, however I also have fields using XamMultiColumnComboEditor. Can this be adapted?