Hi,
I just want to know how to change the background colour for a particular cell in XamlGrid. I want to do this in Code behind (C#). Could anyone please assist on this.
Many thanks in advance
Florence
Hi jfjuliet,
The attached ChangeCellBackgroundAtRuntime sample application contains the fullsolution implementation to your question - "How to change the background of a particular cell in the xamDataGrid ( by C# code) ?".If you have any questions, please let me know.
Best Regards,Yanko
It works fine, but when i use FieldChoser, to hide/unhide columns, the highlight goes off, how to keep the cell highlight color until i close the application.
Thanks for the information in these posts. I am using the XamDataGrid and handling the CellUpdated event. In my handler I am doing this:#
CellValuePresenter.FromCell(e.Cell).Background = Brushes.Yellow;
At first glance, this seems to work but if I scroll down I can see other cells that have been assigned the Yellow color. When I set a breakpoint I do not see the handler called for these additonal cells that get updated and turned Yellow. Seems strange. Any ideas?
Thanks.
Robert