Right this is driving me nuts. I feel like I have read every post on the web with still nothing sinking in. All im trying to to is bind to a List
gvCompany.DataSource = BLL.Inventory.Company.GetAllActive(forceReload);
DataGridViewComboBoxColumn stateColumn = GridViewComboBoxColumn();
DataGridViewComboBoxCell cellCombo = new DataGridViewComboBoxCell();
stateColumn.DataPropertyName = "StateName";
stateColumn.CellTemplate = cellCombo;
gvCompany.Columns.Add(stateColumn);
private static DataGridViewComboBoxColumn GridViewComboBoxColumn()
{
DataGridViewComboBoxColumn sColumn = new DataGridViewComboBoxColumn();
sColumn.DataSource = BLL.Inventory.State.GetAllActive();
sColumn.DisplayMember = "Name";
sColumn.ValueMember = "OID";
return sColumn;
}
Can some one show me what im doing wrong? It Binds but I dont get any drop down,