Hi,
I am trying to format the Filter row in the XamDataGrid with Foreground colour of Red.
XAML:
<igWPF:XamDataGrid BindToSampleData="True"> <igWPF:XamDataGrid.FieldSettings> <igWPF:FieldSettings AllowRecordFiltering="True"> <igWPF:FieldSettings.FilterCellEditorStyle> <Style TargetType="{x:Type igEditors:XamComboEditor}"> <Setter Property="Foreground" Value="Red"></Setter> </Style> </igWPF:FieldSettings.FilterCellEditorStyle> </igWPF:FieldSettings> </igWPF:XamDataGrid.FieldSettings> </igWPF:XamDataGrid>
as per attached screenshot, the filter row displays the foreground color correctly after I lose focus, but in Edit mode it still shows black.
Can you please suggest how can I change the color of text in edit mode as well?
Thanks.
Regards,
Anant.
Any thoughts on above?
Thank you for your post. I have been looking into your question and you could try to set the foreground of the ComboBox element of the XamComboEditor too like :
<igWPF:FieldSettings.FilterCellEditorStyle>
<Style TargetType="{x:Type igEditors:XamComboEditor}">
<Setter Property="Foreground" Value="Red"></Setter>
<Setter Property="ComboBoxStyle">
<Setter.Value>
<Style TargetType="ComboBox">
<Setter Property="Foreground" Value="Red"/>
</Style>
</Setter.Value>
</Setter>
</igWPF:FieldSettings.FilterCellEditorStyle>
Let me know, if you need any further assistance on this matter.
Thank you for your post. I have been looking into your question and I can suggest you set the foreground of the CombBox of the XamComboEditor like e.g.:
Thanks this is what I was looking for.
Thank you for your reply. I am glad that you have managed to resolve your issue. I believe that other visitors of our community can get benefit from this.