[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [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
  [Collapse]Vertical Grid
   [Expand]Binding to Data
   [Expand]Data Layout: Records, Rows and Cells
   [Collapse]Data Editing and Validation
     In-place Editors
     Assigning Editors to Editor Rows
     Assigning Editors to Multi-Editor Rows
     Showing and Hiding Editors
    Formatting Values
   [Expand]Drag and Drop
   [Expand]Appearance and Custom Painting
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]End-User Capabilities
    Hit Information
    Batch Modifications
   [Expand]Member Tables
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [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)

Assigning Editors to Multi-Editor Rows

The difference between a multi-editor row and an editor row is that a multi-editor row displays data from several fields. Field values are displayed in separate cells combined in a single column, and each cell uses its own editor to present and edit underlying data.

Displaying the values of several data fields within a single row implies that the row contains a collection of row properties. Thus, assigning editors to multi-editor rows is the same as Assigning Editors to Editor Rows - the only difference is that editors are bound to each item in the row properties collection. This collection can be accessed via the MultiEditorRow.PropertiesCollection property.

Expanded Assigning Editors at Design Time

As mentioned earlier, assigning editors to multi-editor rows is similar to assigning them to editor rows. The only difference is that you need to access a specific item within the row properties collection.

This example will create a spin editor and bind it to two items in a multi-editor row. The image below shows a VGridControl before the editors have been assigned.

Follow the steps below.

  1. Right-click the vertical grid control and select Run Designer from the context menu.

  2. In the invoked VerticalGrid Designer, select the target multi-editor row and switch to the Row Properties tab.

  3. In the MPG City tab (which displays the settings of the first row item), select the RowEdit property, click the dropdown button and select the SpinEdit item in the dropdown window.

    The assigned repository item is automatically added to the control's internal repository.

  4. Switch to the Highway tab (which displays the settings of the second row item) and assign the previously created spin editor to it via the RowEdit property.

  5. Run the application. The image below shows the result of assigning the editors.

In the image above, editor buttons are displayed for all cells within the currently focused row. This effect can be achieved by setting the VGridControlBase.ShowButtonMode property to ShowButtonModeEnum.ShowForFocusedRow.

Expanded Assigning Editors at Runtime

The sample code below performs the same actions as in the design-time example.

Expanded See Also

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