DataGrid row isn't selected when clicking in the "filler" column

Oct 1, 2009 at 11:23 AM

I'd like to know how to select a DataGrid row by clicking on any part of it. Currently the filler column that is added at the end doesn't respond to a mouse click. It does recognise a MouseOver and is able to highlight the row when the cursor is inside it, but the row doesn't select if you click.

I don't want to set the width of the last column to be * as it will look very odd with our data. I need the columns to only be as wide as the data inside them.

I can get around it by adding a dummy column at the end with Width="*" but this is not an elegant solution.

Am I missing something here? Any help appreciated.



Oct 26, 2009 at 2:25 PM

Just bumping this topic as it's proving to be an awkward one to code around continually.

Does anyone have any alternative ideas please?