Ticket T118087
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

DataGrid entry highlight on change

How to highlight a DxGridCell when the value changes

created 11 years ago
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

Comments (1)
DevExpress Support Team 11 years ago

    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:

    1. How to change background color for modified cells
    2. A general approach to highlighting specific grid cells
    3. How to change background color for modified cells

    Hope these help.

    Answers

    created 11 years ago (modified 11 years ago)

    Hello Support,

    I will close this question because the work is being finished in https://www.devexpress.com/Support/Center/Question/Details/Q587620.  I consider this to be a duplicate question.  Thank you for the ongoing work.

    Regards,
    Bryce

      Comments (1)
      DevExpress Support Team 11 years ago

        Hi Bryce,
        I'm happy to hear that our assistance was helpful and the issue has been resolved. Should you have any questions regarding our controls, feel free to contact us.

        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.