N
Nomasnd
Hi, i would like to make a DataGridViewComboBoxCell (which often is the
last-edited one) validate in such a way that when the datagrid lost the
focus the ComboBox cell Text property is setted to the combobox Value
property. I've already written all the code needed to change the
ComboBox view from a only-pushbutton style to a combobox style (with
the text box editable i mean) and to add the Text value to the ComboBox
Items and then setting the Value property of the ComboBox to the
original Text value. But all works correctly only if i change the
focus from the ComboBox cell to another cell. Instead if i click a
button outside the DataGridView the cell is not validated and so the
Value is not setted and remains null.
Is there a way to cause the validation of the DataGridView (and of the
ComboBox cell as well) when the DataGridView lost focus?
thanks
last-edited one) validate in such a way that when the datagrid lost the
focus the ComboBox cell Text property is setted to the combobox Value
property. I've already written all the code needed to change the
ComboBox view from a only-pushbutton style to a combobox style (with
the text box editable i mean) and to add the Text value to the ComboBox
Items and then setting the Value property of the ComboBox to the
original Text value. But all works correctly only if i change the
focus from the ComboBox cell to another cell. Instead if i click a
button outside the DataGridView the cell is not validated and so the
Value is not setted and remains null.
Is there a way to cause the validation of the DataGridView (and of the
ComboBox cell as well) when the DataGridView lost focus?
thanks