AD
Administrator
Syncfusion Team
August 6, 2003 09:39 AM UTC
For most cells, including comboboxes, the changed values are not moved into the grid until the user confirms the change by moving to another cell. For checkboxes, this is not the case. The check is stored whenever the value changes whether or not the cell still has input focus.
So, I suspect the problem you are seeing is that the user drops the combobox and makes a selection, but the dependent cell does not change immediately. If you click off the combobox cell, then the dependent cell should change (provided it has to repaint for some reason).
If this is the case, then one way to try to get the change to register immediately is to handle the CurrentCellCloseDropDown event, and if the CurrentCell.ColIndex points to your combobox column, then call CurrentCell.ConfirmChanges(). This should force the value to be saved as soon as the combobox closes.
SD
Stuart Dent
August 6, 2003 11:23 AM UTC
> For most cells, including comboboxes, the changed values are not moved into the grid until the user confirms the change by moving to another cell. For checkboxes, this is not the case. The check is stored whenever the value changes whether or not the cell still has input focus.
>
> So, I suspect the problem you are seeing is that the user drops the combobox and makes a selection, but the dependent cell does not change immediately. If you click off the combobox cell, then the dependent cell should change (provided it has to repaint for some reason).
>
> If this is the case, then one way to try to get the change to register immediately is to handle the CurrentCellCloseDropDown event, and if the CurrentCell.ColIndex points to your combobox column, then call CurrentCell.ConfirmChanges(). This should force the value to be saved as soon as the combobox closes.
Thanks Clay, I suspect that making the call to ConfirmChanges will solve the problem.
Regards
Stuart Dent