Update the datasource for an adjacent cell when selection change occurs in a DataGridView Combo box cell

StackOverflow https://stackoverflow.com//questions/9571180

質問

I have a dataGridView with comboBox dropdowns for each cell. I would like to update the datasource for cell[0,1] when the value in cell[0,0] changes.
I created an event handler for the 'selection changed events' on the datagrid view. When the selection changed event occurs, it fires the event, and the sender is the DataGridViewComboBoxEditingControl type.

How do I know which column triggered the selection changed event?

役に立ちましたか?

解決

This walk through shows the example for your scenario.

http://asimsajjad.blogspot.in/2009/09/raising-dropdownlist.html

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top