Is it possible to have a different CellvaluePresenter style for the cells of the last row of the xamDataGrid?
Thanks!
Thanks Andrew, the sample solved my issue!
Hello George,
Thank you for your post.
I have been investigating into this functionality that you are looking to achieve, and I would recommend writing a style for CellValuePresenter in the XamDataGrid.Resources section of your grid. This CellValuePresenter style can use a DataTrigger with a MultiBinding and an IMultiValueConverter which binds directly to "Index" and to your XamDataGrid's Records.Count property. The CellValuePresenter's data context is that of the record that it exists in, so binding directly to Index will yield the index of that particular record. These values will go into the multi-value converter, and you can check if the Index integer is equal to the XamDataGrid's Records.Count - 1. If it is, that is the last row in the grid and you can add the setters to the DataTrigger to style the parts of the CellValuePresenter that you would like to style.
I have attached a sample project to demonstrate the above. I hope this helps you.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support