How to limit selection to maximum two cells in a row of a DataGrid in WPF?

Apr 18, 2011 at 5:53 PM

I am currently trying to limit selection of maximum two consecutive cells in a single row of a DataGrid in WPF. How can I do that? Any hints? Thanks.