0

I have a ListView form that looks like this:

enter image description here

How do I make it so each cell is like an editable textbox so the user can edit the values by clicking on a cell? Like if they click on "Count" a text edit cursor should appear in-place and they should be able to type to change the value of the field (Not in a separate dialog box or text field)

Kyle V.
  • 4,752
  • 9
  • 47
  • 81
  • [That's exactly what I'm talking about](http://stackoverflow.com/questions/15532639/complex-ui-inside-listboxitem#). The response I got for that question is that if you need serious UI, you have to use a serious UI framework. – Federico Berasategui Apr 04 '13 at 19:37
  • @HighCore Looks like I'd be better off using WPF then. – Kyle V. Apr 04 '13 at 20:30
  • what about using a datagridview instead of a listview. Or use this: http://www.codeproject.com/Articles/16009/A-Much-Easier-to-Use-ListView – string.Empty Apr 04 '13 at 20:34
  • If you wanted to dig into it you could extend the list view. I did this once and it worked out really well. [I used some code that was found at the Code Project](http://www.codeproject.com/Articles/9188/Embedding-Controls-in-a-ListView). – Pow-Ian Apr 04 '13 at 20:53

1 Answers1

1

The ListView is intended for flexible display of a list of items. Similar to windows explorer's ability to show icons, thumbnails, details and basic list, all from the same set of objects. If you really want to edit all of the elements in your data objects, you should probably read up on DataGridView and data-binding.

cdkMoose
  • 1,646
  • 19
  • 21