[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Spell Checking
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
   [Expand]Visual Elements
    Keyboard Shortcuts
    HTML Tag Support
    [Expand]Text Boxes
    [Expand]Document Elements
    [Expand]Search and Replace
    [Expand]Mail Merge
    [Expand]Spell Check
    [Expand]Import and Export
      How to: Grant Editing Permissions in a Document
      How to: Grant Editing Permissions in Code
    [Expand]User Interface Customization
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Grant Editing Permissions in a Document

The WinForms Rich Text Editor allows you to enable specific users or groups to edit certain document parts when the whole document is protected from modification

Follow the steps below to grant editing permissions:

  1. Select a range.
  2. On the Review ribbon tab, click the Range Editing Permissions button to invoke the Editing Permissions Dialog.

  3. In the Editing Permissions dialog, check users and groups who can edit the current range. These permissions are enforced when the document is protected. Click OK to apply changes and close the dialog window.

  4. On the Review ribbon tab, click the Protect Document button to enable document protection.

  5. In the invoked Document Protection dialog, specify the editing type in a protected document (read-only or comments only), provide and confirm a document protection password. Click OK to close the dialog.


    The password protection affects the document modification only and is required to unlock the document. The document is opened without prompting for a password.

  6. Save the document as a DOCX file.
  7. To enable editing the protected range when opening the document in a RichEditControl, set the AuthenticationOptions.UserName property to an allowed user specified in step 4, or the RangePermission.Group property to an allowed group.
  8. Load the document from step 7.
  9. Edit the range. Ranges without edit permission are read-only when document protection is enabled.
  10. Enable document modification by clicking Unprotect Document on the Review ribbon tab. It invokes a simple dialog that prompts for a password or unlocks the document if an empty password was set.

Is this topic helpful?​​​​​​​