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
105
Styling XamComboEditor in XamDataGrid Filter
posted

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.