how to get the value entered in combobox that is binded to datagridview
- by Ranjana
i have dynamically added combobox to datagridview.
in this gridview i need to enter the values to combobox. but it is not allowing me to enter the value.
code:
if (strtype.Contains("ComboBox"))
{
checkcmbColumn.Name = strControlName;
checkcmbColumn.HeaderText = strColumnName;
checkcmbColumn.HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
checkcmbColumn.Width = 100;
checkcmbColumn.ReadOnly = false;
checkcmbColumn.Items.Add("1");
checkcmbColumn.Items.Add("2");
GrdViewDetails.Columns.Add(checkcmbColumn);
}