Hello. Tried searching, but could not find a similar issue.
I have a XamDataGrid that shows the user lots of properties about a collection of objects, and the user should only be allowed to select an entire row(record), not a single cell.
I have set the datagrid's fieldlayout's fieldlayoutsettings to SelectionTypeRecord="Single" and SelectionTypeCell="None". And it works, when clicking a cell the entire record is selected. My "problem" is that even though the entire row is selected and not the cell, the cell still looks selected because it gets a black frame around it. This doesn't give me any functional problems, it just looks strange and may be confusing for my users.
Any ideas how to avoid the black frame?
Hello,
Here are some other ways of achieving this :
1. Cancel the CellActivating event (e.Cancel = true);
2. Create a style for the CellValuePresenter and set the BorderActiveBrush and BackgroundActive properties to transparent.
Finally figured it out. Just so many places and so many properties and less than stellar help and examples.
It's in FielSettings - CellClickAction - SelectRecord
Did you ever solve this? I'm trying to accomplish the same thing and this is getting very frustrating.
thanks!