General information
Category:
The Mere Mortals .NET Framework
I placed the data in an MM object (oWorkStations) and set the datagridview ColumnType to DataGridViewComboBoxColumn. Since I can't change the DataSource in the EditColumns form, I used the following code:
DataGridViewComboBoxColumn dgvcc =
(DataGridViewComboBoxColumn)dgvParents.Columns["colParentFK"];
dgvcc.DataSource = "WorkStations";
dgvcc.ValueMember = "WorkStationPK";
dgvcc.DisplayMember = "ComputerName";
When the program runs, I get an error when setting the DataSource:
Complex DataBinding accepts as a data source either an IList or an IListSource.
I changed the line to
dgvcc.DataSource = oWorkStation;
with the same results.
I looked and didn't find an mmDataGridViewComboBoxColumn, so I'm at a loss as to where to go next.
Thanks for the help,
Jeff
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only