I have a lot of code that is built around xamdatagrid.SelectedIItems.Cells and accessing that collection in code-behind.
Is there a way when the user selects the right-triangle in the record selector (also when the user selects the right-triangle and drags the record selection) to have that update my selectedItems.cells so the cells of the selected records are selected?
Hello singlemalt,
I have been looking through your post. When you select a record, the collection SelectedItems.Cells is cleared. The same happens if some records are selected and you try to add cells to the selection – SelectedItems.Records is cleared and the new items are added to SelectedItems.Cells. I suggest that you select only cells in order to update the SelectedItems.Cells collection.
Please let me know if you have any other questions or concerns on this matter.
This is when the user selects with the record selector. My code is looking at selected cells. What I am trying to avoid is having to modify all the places I am doing things with selected cells to also include an optional check for selected records. Perhaps the best way to proceed is to do just that.
Hello,
Thank you for your feedback. It seems that this is the best approach for resolving your issue. Please do not hesitate to ask if you have any other questions.
I am just checking if you require any further assistance on the matter.