Small, editable table of strings. Which Forms control do I want? (.NET)

Posted by I. J. Kennedy on Stack Overflow See other posts from Stack Overflow or by I. J. Kennedy
Published on 2009-10-24T04:49:31Z Indexed on 2010/03/31 3:53 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

I have a small array of structs, each struct has three fields, all strings. I want to display these structs in a grid, let the user edit the strings a la Excel, and then retrieve the edited strings of course. Which WinForms control is best for this?

Tried a DataGridView but setting the DataSource to the array of structs doesn't seem to work. There are myriad controls with similar names but I can't figure out what does what. All the examples I've found are geared toward using a database as the data source--I just have a simple array.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET