How do I deselect grid row when grouping in David Poll's silverlight CollectionPrinter

Posted by kpg on Stack Overflow See other posts from Stack Overflow or by kpg
Published on 2012-04-04T17:21:18Z Indexed on 2012/04/04 17:29 UTC
Read the original article Hit count: 350

I'm using David Poll's CollectionPrinter and modifications by Fama to perform grouping.

I'm using the control to print a datagrid with grouping and it works well if not a little slow.

Problem: When the grid is displayed the first row of the grid is selected and the first cell of the row is also selected. I want to either deselect the row or change the datagrid template to make selected rows/cells appear as not selected.

I tried to specify a grid template to change the row/cell selection appearance but when I added the default template I got a COM error of all things - anyway I concluded that what I was doing was not compatible with the SLab libraries, or perhaps because the grid was specified in a datatemplate. In any case I abandoned that approach.

Since I have the SLab source if I understood it more there may be a way to deselect the row after from that side of things - but I know the SLaB CommectionPrinter does not rely on the data template to be a grid, so I'm not sure how to modify the code to accomplish what I want.


How can I prevent the row from being selected or deselect it once it is or change the appearance of the selectd row when using the CollectionPrinter with grouping?

Note that the row selection problem may occur without grouping as well, I don;t know, but it definatly does with grouping.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about datagrid