Reputation: 3211
I have an application that needs to display 1 to N custom controls in a grid (one control per row) and allow the user to select one row at a time.
I tried using DataGridView but that only allows Text, Button, Checkbox, ComboBox, Image, and Link.
Is there a control similar to DataGridView that allows me to insert any arbitrary custom control?
Thanks!
Upvotes: 1
Views: 436
Reputation: 94653
You can create a custom column
by extending the DataGridViewColumn
and DataGridViewCell
classes. Have a look at MSDN article - How to: Host Controls in Windows Forms DataGridView Cells.
Upvotes: 3