Hi,
I have a datagrid in which i have a datagridcombo box(editable),I have populated the combobox manualy by using the following code.
DataGridViewCom boBoxColumn Actioncolumn = new DataGridViewCom boBoxColumn();
Actioncolumn.Da taPropertyName = "ZSL_Action ";
Actioncolumn.He aderText = "Action";
string[] installs = new string[] { "red", "white", "green" };
Actioncolumn.It ems.AddRange(in stalls);
//Actioncolumn.It ems.Add("red");
//Actioncolumn.It ems.Add("white" );
//Actioncolumn.It ems.Add("green" );
Actioncolumn.Re adOnly = false;
dataGridView1.C olumns.Add(Acti oncolumn);
Now went i try to change the combo box value , DataError occurs. What shall i do.
Also by default only 1st value(i.e., Red) is assigned to the combo box. what shall i do.
I have a datagrid in which i have a datagridcombo box(editable),I have populated the combobox manualy by using the following code.
DataGridViewCom boBoxColumn Actioncolumn = new DataGridViewCom boBoxColumn();
Actioncolumn.Da taPropertyName = "ZSL_Action ";
Actioncolumn.He aderText = "Action";
string[] installs = new string[] { "red", "white", "green" };
Actioncolumn.It ems.AddRange(in stalls);
//Actioncolumn.It ems.Add("red");
//Actioncolumn.It ems.Add("white" );
//Actioncolumn.It ems.Add("green" );
Actioncolumn.Re adOnly = false;
dataGridView1.C olumns.Add(Acti oncolumn);
Now went i try to change the combo box value , DataError occurs. What shall i do.
Also by default only 1st value(i.e., Red) is assigned to the combo box. what shall i do.
Comment