I need a control which I can iterate through and change the items in it based on which option is selected in a separate combobox. Any direction would be helpful, thank you!.
I can place each element separately, but then I'm not sure how to do that iteratively without a lot of work. I'm wondering if there is a better control for me to use.
An easy way to achieve this is to use the
DataGridViewcontrol and add sufficientDataGridViewColumn. In your example you could addDataGridViewCheckBoxColumnandDataGridViewTextBoxColumnto your grid view. The only downside is that (at least to my knowledge) there is no easy way to add text directly to the checkbox cell but instead one could add anotherDataGridViewTextBoxColumnto display that information.How it would look like:
Just add a
DataGridViewin your designer then explicitly add three columns to it. In my example the first and third column is of typeDataGridViewTextBoxColumnwhilst the middle column is of typeDataGridViewCheckBoxColumn.Code