i have a datagridview in that i have two combo box columns, i want to make one of the combo box to be a text box as well as a combox but the other combo box i want to leave it as it is?
how can i do this???
i have the code to make it a text box when the cell is clicked
private void dgvForm_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
DataGridViewComboBoxEditingControl comboControl = e.Control as DataGridViewComboBoxEditingControl;
if (comboControl != null)
{
Set the DropDown style to get an editable ComboBox
if (comboControl.DropDownStyle != ComboBoxStyle.DropDown)
{
comboControl.DropDownStyle = ComboBoxStyle.DropDown;
}}}
how can i make only one combo box to be a datagridview text box and a datagridview combo box
plase some one guide me
thanxxxxxxx