tags:

views:

7420

answers:

2

I am trying to create a databound WPF GridView whose rows can either be read-only or editable (by double-clicking or through a context menu). I would like for the row to return to a read-only state if any of its editable controls loses focus. The functionality I am looking for is very similar to this example but with an entire row being editted simultaneously (rather than a single cell). Does anyone know how to implement this?

+1  A: 

With the ListView + GridView control il quite complex because this control "thinks in column" so you have to create a template for every column and switch the read-only template with edit template (for every cell). I suggest you to take a look a the xceed DataGrid. It's free and it implements the edit functionality in a simpler way (you can find info here: http://xceed.com/Grid_WPF_Intro.html)

ema
800 dollars doesn't look free to me.
Anthony Potts
The post is quite old. Now xceed don't offer the grid for free anymore. Last year there was a free edition. Now you could use the WpfToolkit (http://wpf.codeplex.com/) that include a DataGrid.
ema
+4  A: 

there is also the "official" wpf datagrid from microsoft at codeplex : http://www.codeplex.com/wpf

Joachim Kerschbaumer