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
How to set the Filter Textbox border

I've set the FilterOperandUIType to TextBox in my xaml code in the field settings for my XamDataGrid.

I would now like to set the Border of  that TextBox to some color. The reason is that for users it's much easier to see that there is actually a textbox there they can click on and enter text. Without the border it's very hard to tell that there is a place they can click on and enter text.

I tried creating a style for the XamTextEditor and add it to the <igDp:XamDataGrid.Resources> but all that did was create a border around the filter textbox and it caused a border to be drawn around every cell that was in a text field.

How do I get just the Filter TextBox to have a border and not any of the cells in any of the fields?

Thanks for any help.

  • 980
    Offline posted

    Hello Michael,

    Setting up a style for XamTextEditor without a key will replace the default style for every editor in the grid. You can try styling the FilterCellValuePresenter instead:

    <Style TargetType="{x:Type igDP:FilterCellValuePresenter}">
        <Setter Property="BorderThickness" Value="1,1,1,1"/>
        <Setter Property="BorderBrush" Value="Red"/>

    Should you have any further questions, please let me know.


    Tihomir Tonev
    Associate Software Developer

Reply Children