C#<dxg:GridControl ItemsSource="{Binding Path=ReturnBytesAsCollection}" EnableSmartColumnsGeneration="True" myComponents:ViewxGridInitialSizer.IsEnabled="True" >
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="BaseAddress" Tag="8" />
<dxg:GridColumn FieldName="B_0" Tag="2" />
<dxg:GridColumn FieldName="B_1" Tag="2" />
<dxg:GridColumn FieldName="B_2" Tag="2" />
<dxg:GridColumn FieldName="B_3" Tag="2" />
<dxg:GridColumn FieldName="B_4" Tag="2" />
<dxg:GridColumn FieldName="B_5" Tag="2" />
<dxg:GridColumn FieldName="B_6" Tag="2" />
<dxg:GridColumn FieldName="B_7" Tag="2" />
<dxg:GridColumn FieldName="B_8" Tag="2" />
<dxg:GridColumn FieldName="B_9" Tag="2" />
<dxg:GridColumn FieldName="B_A" Tag="2" />
<dxg:GridColumn FieldName="B_B" Tag="2" />
<dxg:GridColumn FieldName="B_C" Tag="2" />
<dxg:GridColumn FieldName="B_D" Tag="2" />
<dxg:GridColumn FieldName="B_E" Tag="2" />
<dxg:GridColumn FieldName="B_F" Tag="2" />
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView Name="TgtMemByteView" AllowEditing="False" ShowGroupPanel="False" AllowGrouping="False" AllowSorting="False" BestFitArea="All" BestFitMode="AllRows" >
<dxg:TableView.LayoutCalculatorFactory>
<dxg:GridTableViewLayoutCalculatorFactory />
</dxg:TableView.LayoutCalculatorFactory>
<!--<dxg:TableView.Background>
</dxg:TableView.Background>-->
</dxg:TableView>
</dxg:GridControl.View>
</dxg:GridControl>
Hello Support,
I have converted to only use DxGrids. I need to highlight a grid cell when the ViewModel shows that the entry has changed. An example grid (in XAML) is included. The desired behavior is to set the specific grid cell's background color to a different color (say OrangeRed). Your help would be greatly appreciated.
Regards,
Bryce
Hi Bryce,
Would you please describe what the following means: "ViewModel shows that the entry has changed"? Does your ViewModel have an additional property showing that some ViewModel properties are modified or you wish to handle the ViewModel.PropertyChanged events? We provide several examples demonstrating how to highlight the required cells in different scenarios:
Hope these help.