Skip to main content
You are viewing help content for pre-release software. This document and the features it describes are subject to change.
All docs
V25.2
  • Multi Cell Edit Behavior

    Use a MultiCellEditBehavior object to allow a user to edit multiple selected cells simultaneously.

    WinForms AI-driven Semantic Search, DevExpress

    Run Demo: Cell Selection

    Supported Controls

    Activate Multi-Cell Editing

    1. Activate the control’s OptionsSelection.MultiSelect property.

    2. Drop the BehaviorManager component onto the form.

    3. Select Edit Behaviors in the BehaviorManager’s smart tag menu and add a Multi Cell Edit Behavior in the Behavior Editor.

    Code Example

    The following code snippet activates multi-cell editing in a GridView:

    using DevExpress.XtraEditors;
    public class Form1 : XtraForm {
        BehaviorManager bm;
    
        public Form1() {
            InitializeComponent();
            // Activate multi-cell selection
            gridView1.OptionsSelection.MultiSelect = true;
            // Attach a Multi Cell Edit Behavior
            bm = new BehaviorManager(this.components);
            bm.Attach<MultiCellEditBehavior>(gridView1);
        }
    }
    

    Notes

    • New values are only applied to cells with compatible value types.
    • If the control’s OptionsSelection.MultiSelectMode is set to RowSelect, new values are only applied to the focused column.