Darf Zon
Darf Zon

Reputation: 6378

How to have a listview with textbox editable in WPF?

While I'm posting this. I thought, I can use a datagrid.

Is so complex to create a listview editable or is better to use the datagrid?

Upvotes: 2

Views: 5015

Answers (1)

brunnerh
brunnerh

Reputation: 185445

It's not that hard, just add a GridViewColumn with a CellTemplate that contains a TextBox.

The DataGridTextColumns are a bit more simple though as you just need to specify the Binding while the TextBox is created automatically. You could create a custom class for GridViews (GridViewTextColumn) which does the same thing though.

Upvotes: 3

Related Questions