Current filter:
                                You should refresh the page.

                                1 Solution

                                Creation Date Importance Sort by

                                Hello,

                                I recommend you refer to the How to: Change the Appearance of Selected Cells help article which illustrates how to achieve this goal.

                                Should you have additional questions, let us know.

                                Show all comments
                                • Philippe Tailleur 1 08.22.2019

                                  Many thanks the how to is very clear

                                • Alexey Z (DevExpress Support) 08.23.2019

                                  You are always welcome!

                                • Philippe Tailleur 1 08.26.2019

                                  How can I do it with a MultiTrigger condition ?

                                  Is it also applicable in treelistview

                                  Many thanks

                                • Philippe Tailleur 1 08.26.2019

                                  I have writen these code

                                          <Style x:Key="SelectionStateCellStyle" TargetType="dxg:LightweightCellEditor"
                                                 BasedOn="{StaticResource ResourceKey={dxgt:GridRowThemeKey ResourceKey=LightweightCellStyle}}">

                                              <Style.Triggers>
                                                  <MultiTrigger>
                                                      <MultiTrigger.Conditions>
                                                          <Condition Property="SelectionState" Value=""/>
                                                          <Condition Binding="{Binding Rowdata.Row.HasChanged}" Value="True" />
                                                      </MultiTrigger.Conditions>
                                                      <MultiTrigger.Setters>
                                                          <Setter Property="Background" Value="Red"/>
                                                      </MultiTrigger.Setters>
                                                  </MultiTrigger>
                                                  <MultiTrigger>
                                                      <MultiTrigger.Conditions>
                                                          <Condition Property="SelectionState" Value="FocusedAndSelected"/>
                                                          <Condition Binding="{Binding Rowdata.Row.HasChanged}" Value="True" />
                                                      </MultiTrigger.Conditions>
                                                      <MultiTrigger.Setters>
                                                          <Setter Property="Background" Value="Red"/>
                                                      </MultiTrigger.Setters>
                                                  </MultiTrigger>

                                                  <!--<Trigger Property="SelectionState" Value="Selected">
                                                      <Setter Property="Background" Value="Gray"/>
                                                  </Trigger>-->
                                                  <!--<Trigger Property="SelectionState" Value="Focused">
                                                      <Setter Property="Background" Value="LightGray"/>
                                                      <Setter Property="TextBlock.Foreground" Value="Navy"/>
                                                  </Trigger>
                                                  <Trigger Property="SelectionState" Value="FocusedAndSelected">
                                                      <Setter Property="Background" Value="Gray"/>
                                                      <Setter Property="TextBlock.Foreground" Value="Black"/>
                                                  </Trigger>-->
                                              </Style.Triggers>
                                          </Style>

                                  But it doesn't work

                                • Alexey Z (DevExpress Support) 08.27.2019

                                  Hello,

                                  You can also find this information in our documentation - Optimized Mode Styles and Templates->CellStyle. I have created a small sample to demonstrate how this works. Please try this approach and let me know your results.

                                • Philippe Tailleur 1 08.28.2019

                                  I see that I don't have enough knowledge of the style and template.

                                  Many thanks

                                • Alexey Z (DevExpress Support) 08.28.2019

                                  You are always welcome!