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!

RE: DataGridView ComboBoxColumn by ManishBafna

ManishBafna
Thu Jul 19 23:00:00 CDT 2007

Hi,
Below links should help you:
http://www.windowsclient.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20FAQ.doc

http://www.windowsclient.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20Samples.zip
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Paul" wrote:

> 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!