tags:

views:

1743

answers:

1
  • I have a WPF DataGrid that shows some data records (bounded to an ObservableCollection).

  • When the user clicks "Edit" button, the currend selected row should move into edit-mode (As if the user double-clicked this row).

  • Any idea of someone who knows how to do that ?

A: 

Here is the documentation of the WPF DataGrid on MSDN. The BeginEdit method seems to be what you are looking for.

PS: I don't know if this is suitable for your application, but many DataGrid users find Single-Click Editing useful.

Heinzi