Soldato
Is anyone up to speed on this?
I've got a couple of DGVs which are master / detail pulling information using Entity Framework (v5) from a SQL Server.
I'm trying to change one column to be a combobox lookup but I keep getting errors like:
It obviously needs something different from a dataset or similar datasource but I'm stumped on exactly what. I've tried some different strings for ValueMember and DisplayMember but no success.
Cheers,
Chris.
I've got a couple of DGVs which are master / detail pulling information using Entity Framework (v5) from a SQL Server.
I'm trying to change one column to be a combobox lookup but I keep getting errors like:
DataGridViewComboBoxCell value is not valid
Code:
dgvc.Name = "Contract Type"
dgvc.DataPropertyName = "ContractTypeID"
dgvc.ValueMember = "tblContractType.ContractTypeID"
dgvc.DisplayMember = "tblContractType.ContractTypeDescription"
It obviously needs something different from a dataset or similar datasource but I'm stumped on exactly what. I've tried some different strings for ValueMember and DisplayMember but no success.
Cheers,
Chris.