By default, the covered ranges cannot be UNDO from the GridControl. This can be achieved by creating the custom GridModelSetCoveredRangesCommand derived from the GridModelCommand. The covered ranges have to be pushed to the command stack of the GridControl using the Push method of the CommandStack property.
The UNDO operation will reload the covered ranges once CTRL + Z key is pressed after the covered ranges is cleared from the GridControl.
Undo and Clear the covered ranges
In the below sample, the covered ranges can be cleared by clicking the ‘Clear covered ranges’ button. And covered ranges can be added to the command stack collection by clicking the ‘Undo the covered ranges’ button. The covered ranges can be restored by pressing CTRL+Z.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|