Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Setting cell.Value does not fire CellValueChanged
posted
I have an UltraTreeView with its ViewStyle = FreeForm. One of the columns is set to a Boolean type which renders a CheckBox. Within this column, I'm trying to modify a cell value using the following code:

cell.BeginEdit()
cell.Value = Not CBool(cell.Value)
cell.EndEdit()

When I do this, the CheckBox UI is updated correctly, but the CellValueChanged event does not fire. What am I missing, or is this a bug?
Parents
  • 69832
    Offline posted

    You have to set the value on the editor when the cell is in edit mode, like so: 

    this.ultraTree1.ActiveCell.BeginEdit();
    this.ultraTree1.ActiveCell.EditorResolved.Value = someValue;
    this.ultraTree1.ActiveCell.EndCellEdit( false );

Reply Children
No Data