G
Guest
I am trying to use the DataGridView to accomplish a certain task.
Here is my scenario:
I have a datasource that has a Model/Make relationship. It can be likened
to a user filling in what cars they own. So they add a new row and select
the Mae of their car from a combobox. Then they can select the model from
another combobox in the same grid. The model combobox only contains possible
models for the make selected. In turn, if they go back to that row later and
select a different make, the model choices should now correspond to the newly
selected make.
Everything else on my winform is bound so, for consistency sake, I am trying
to keep all this databound too.
Any ideas, sample code, etc???
For what it is worth, I am aware that one can create a custom datagridview
combox column. I have looked at this briefly and it is hard for me to
determine what events I would need to override in order to get my desired
functionality.
Any ideas?
Thanks in advanced!
Here is my scenario:
I have a datasource that has a Model/Make relationship. It can be likened
to a user filling in what cars they own. So they add a new row and select
the Mae of their car from a combobox. Then they can select the model from
another combobox in the same grid. The model combobox only contains possible
models for the make selected. In turn, if they go back to that row later and
select a different make, the model choices should now correspond to the newly
selected make.
Everything else on my winform is bound so, for consistency sake, I am trying
to keep all this databound too.
Any ideas, sample code, etc???
For what it is worth, I am aware that one can create a custom datagridview
combox column. I have looked at this briefly and it is hard for me to
determine what events I would need to override in order to get my desired
functionality.
Any ideas?
Thanks in advanced!