Hi All,
I need some help. I am coming from the Windows Forms Ultra Grid and want to convert my my grid to the XAMDatagrid. The grid needs to update in real time.(Not the data in the grid but the X-green line and Y-Green Line).
I've managed to bind the data to the grid but I am struggling with is the styles to get the x and y green lines.
This is what the grid needs to look like:
The grid is a fix size of 16 X 16.
I receive the following data:
X - Column Index
Y - Row Index
The green lines must then be highlighted on the grid when they change.
Hope you can help.
Friendly Regards,
Roelof
Hi Mike,
Thanks for the help. Worked 100%
Regards,
Hello Roelof,
Thank you for the update. I have modified your sample to achieve this behavior. Please review the sample and let me know if you have any questions concerning this matter.
4061.NewGridTest.zip
HI Mike,
Still no luck. I've attached a project where I have a XamDatagird and 2 labels on.
I've gotten the grid to bind to the data and the labels have a binding to field that gets updated with a timer. The fields are:
1.ColIndex
2. RowIndex
Could you please assist me with setting the grid column and row backcolor for the above index values and update them as they change. I've tried using styles with data triggers but had no luck.
1007.NewGridTest.zip
I make use op the INotifyPropertyChanged on ColIndex and RowIndex
Any help will be appreciated.
Thanks for getting back to me. I've tried the following code behind:
foreach (DataRecord rec in testGrid.Records) { foreach (var cel in rec.Cells) { if (cel.Record.Index == 0) { cel.DataPresenter.Background = Brushes.Red; } } }
The problem is it makes the entire grid red.
Thank you for contacting Infragistics!
You can set the background property of the cell value presenter:https://ko.infragistics.com/help/wpf/infragisticswpf.datapresenter~infragistics.windows.datapresenter.cellvaluepresenter_members#
https://ko.infragistics.com/community/forums/f/ultimate-ui-for-wpf/14111/how-to-change-cell-background-colour-for-specific-cells