Note that there are some explanatory texts on larger screens.

plurals
  1. POConverters not executing with DataView
    primarykey
    data
    text
    <p>I'm using a grid control from DevExpress. I've binded the grid to a DataView:</p> <pre><code>m_dvResponses = New DataView(...) m_dvResponses.Sort = "SEQUENCENUMBER" GridResponses.ItemsSource = m_dvResponses </code></pre> <p>Everything seems to work fine. When the underlying data changes, the grid updates automatically, so that's good.</p> <p>Problem is that I color some of the cells using a Converter on a specific column:</p> <pre><code>&lt;dxg:GridColumn FieldName="AGENCYNAME" CellStyle="{StaticResource AgencyCellStyle}"/&gt; &lt;Style x:Key="AgencyCellStyle" BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=CellStyle}}" TargetType="{x:Type dxg:CellContentPresenter}"&gt; &lt;Setter Property="BorderThickness" Value="8,0,0,0"/&gt; &lt;Setter Property="BorderBrush" Value="{Binding Path=RowData.Row, Converter={StaticResource AgencyBackgroundColorConverter}, ConverterParameter=AGENCY}" /&gt; &lt;Setter Property="Foreground" Value="{Binding Path=RowData.Row, Converter={StaticResource AgencyForegroundColorConverter}, ConverterParameter=AGENCY}" /&gt; &lt;/Style&gt; </code></pre> <p>When the data changes, the value is updated, but the converter doesn't seem to execute. The converter only executes when the grid paints itself.</p> <p><img src="https://i.stack.imgur.com/G2tQg.png" alt="Before ..."></p> <p><img src="https://i.stack.imgur.com/jdgPn.png" alt="After ..."></p> <p>Notice how the new "p1" didn't color itself since the Converter didn't fire on the update.</p> <p>My question is: Does a DataView trigger a converter when data gets updated? Are converters dependant on objects that implement the INotifyPropertyChanged interface?</p> <p>Thanks for your help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload