I am using Windows .Net 2.0 SDK
I have a DataGridView control in a windows form. None of my controls are
databound prior to run time. I am creating a string array with which I want
to populate each DataGridViewCom boBoxCell programmaticall y.
Some of the items in the comboboxcell controls may be the same, but most
will not, so I can not populate the DataGridViewCom boBoxColumn.
I have tried adding rows to the datagrid using Rows.Add. I have tried
iterating over the datagrid using foreach loops, but haven't been able to
figure out how to add items to the combobox that way either.
During runtime I get an error from the "... DataGridView:
System.Argument Exception: DataGridViewCom boBoxCell value is not valid".
Could anyone offer any help with my problem.
I have a DataGridView control in a windows form. None of my controls are
databound prior to run time. I am creating a string array with which I want
to populate each DataGridViewCom boBoxCell programmaticall y.
Some of the items in the comboboxcell controls may be the same, but most
will not, so I can not populate the DataGridViewCom boBoxColumn.
I have tried adding rows to the datagrid using Rows.Add. I have tried
iterating over the datagrid using foreach loops, but haven't been able to
figure out how to add items to the combobox that way either.
During runtime I get an error from the "... DataGridView:
System.Argument Exception: DataGridViewCom boBoxCell value is not valid".
Could anyone offer any help with my problem.