views:

25

answers:

1

What is the best way to get a row-by-row selection feel to a DataGrid in Silverlight rather than a selected row and an active cell? For my current application I just don't need the UI effect of an active cell.

+1  A: 

Try changing your DataGrid's SelectionUnit property to FullRow. I know it works with WPF although I am not sure if Silverlight syntax is the same or not

Rachel
I can see this is a valid property according to MSDN http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.selectionunit.aspx but when I try to get to the property from Intellisense - no luck. It is not there. Thoughts?
tyndall
I've never worked with Silverlight before, just WPF. Perhaps it is a property that doesn't exist in Silverlight? I know the WPF DataGrid control was only recently added with .Net Framework 4.0. An alternative might be to just style the ActiveCell the same as the SelectedRow
Rachel
I think you are right. Might have to ask some friends or come back here and find out what the Silverlight equivalent is. +1
tyndall