Reputation: 33
I have an entity of a class with many properties and want to implement a GUI to edit their values. It works fine with a DataGridView, but as I only have one instance of the class and many properties the DataGridView becomes very wide and has only one row.
I tried to flip the DataGridView using this: http://www.codeproject.com/Articles/19313/Displaying-Vertical-Rows-in-DataGrid-View
However, once flipped, the DataGridView seems to discard any changes I make to the data. How can I make it possible to edit the data in flipped mode?
Upvotes: 1
Views: 58
Reputation: 33
I realized the DataGridView is not the correct thing to use when trying to edit properties. Instead I found the PropertyGrid, which seems to do exactly what I was trying to accomplish, and even supports categories.
Edit: Oh, too late
Upvotes: 0
Reputation: 883
It sounds like you really should be using PropertyGrid since you have one instance of the class and many properties.
Upvotes: 1