Version

SetValue(Object,Boolean,Boolean) Method

Sets the value of this cell, optionally storing the old value into the undo stack so the user can revert back to the old value via undo operation.
Syntax
'Declaration
 
Public Overloads Sub SetValue( _
   ByVal value As Object, _
   ByVal storeInUndoStack As Boolean, _
   ByVal checkForReadOnlyCells As Boolean _
) 
public void SetValue( 
   object value,
   bool storeInUndoStack,
   bool checkForReadOnlyCells
)

Parameters

value
The new value of the cell.
storeInUndoStack
true to store the original cell value in the undo stack so the user can undo the change.
checkForReadOnlyCells
false to specify that undo or redo actions may be performed even when the cells in the grid are read-only. Has no effect when storeInUndoStack is false.
Remarks

When storeInUndoStack parameter is false this method does the same thing as the Value property. When storeInUndoStack parameter is true, the old value is stored into the undo stack so the user can undo the change in the value of the cell. To enable undo functionality, set the Override's UltraGridOverride.AllowMultiCellOperations property.

When the checkForReadOnlyCell parameter is set to false, the grid will not check if the cells are read-only before performing an undo or redo. This allows the user to undo or redo an action in a read-only cell. This only applies when storeInUndoStack is true.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also