Lining up external combobox with datagridview column


Andrew Jocelyn


I'm very new to windows forms. I want to use a comboBox to do I kind of
'change all' on some datagridview columns cell values. i.e. The user selects
a value in the dropdown and it changes all the cell values in the column it
applys too. AutoSizeColumnsMode is Fill so I would like to lock the comboBox
to the column that it should apply too.

What options do I have?

Many thanks


I am new to using these groups and replied to you rather than the group, can
you please post my answer back to the group. Thanks!


Okay, I guess my reply never reached you. Here its again:
I am assuming that your DataGridView is bound to either a collection of
objects or a Dataset/datable, you can update this bound collection and
rebind or refresh your grid. You can hook up this code on the Comobox
SelectedIndexChanged event.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question