Hi Team,
How could i highlight (change the background color) the filter row which is there just below the column header as shown in the attached image (highlighted in yellow).
Hi Team,
How could i highlight (change the background color) the filter row which is there just below the column header as shown in the attached image (highlighted in yellow).
Hello Tarun,
You may style the filter row by setting TableView.AutoFilterRowCellStyle Property:
XAML<dxg:TableView.AutoFilterRowCellStyle>
<Style TargetType="{x:Type dxg:CellContentPresenter}">
<Setter Property="Background" Value="Pink"/>
<Setter Property="Foreground" Value="Red"/>
<Setter Property="FontWeight" Value="DemiBold"/>
</Style>
</dxg:TableView.AutoFilterRowCellStyle>
The sample project is attached.
Best regards,
Mikhail
I already tried to do it but it throws an exception {"'Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.'}
Inner Exception:
{"Item has already been added. Key in dictionary: 'DevExpress.Xpf.Grid.TableView' Key being added: 'DevExpress.Xpf.Grid.TableView'"}
Sorry it is working perfectly fine… I have added the Style twice by mistake. Thanks for the solution,
You can use the AutoFilterRowCellStyle:
<dxg:TableView.AutoFilterRowCellStyle> <Style TargetType="dxg:FilterCellContentPresenter"> <Setter Property="Background" Value="Beige" /> <Setter Property="Foreground" Value="Black" /> </Style> </dxg:TableView.AutoFilterRowCellStyle>
Thanks it works perfectly fine. Could you please also let me know how could i make column header and group summary which comes at the bottom font BOLD?
Hello Tarun,
I have created separate tickets on your behalf in order to provide quicker and more efficient responses. We will answer you here soon:
T241027: How to make column header font BOLD
T241029: How to make group summary which comes at the bottom font BOLD
Thanks,
Andrey
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.