Jeff,
>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";
It looks like you are setting the DataSource to a string here? If so, you need to set it to a DataTable reference instead. For example:
dgvcc.DataSource = MyDataSet.Tables["WorkStations"];
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com