Reputation: 6378
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
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