Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Overview
   [Expand]Fundamentals
   [Collapse]Concepts
     Filtering
    [Expand]Layouts
    [Expand]Binding to Data
    [Expand]Rows
    [Expand]Records
    [Expand]Cells
    [Collapse]In-place Editors
      Assigning Editors to Editor Rows
      Assigning Editors to Multi-Editor Rows
      Showing and Hiding Editors
      Validation
     Formatting
    [Expand]Appearances
     Hit Information
    [Expand]Custom Painting
    [Expand]Alpha Blending and Background Images
    [Expand]Customization Form
     Batch Modifications
    [Expand]Drag and Drop
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End-User Capabilities
   [Expand]Member Tables
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap 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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Assigning Editors to Editor Rows

This topic describes how to bind editors to editor rows. This editor binding approach is one of the most frequently used since editor rows represent data fields that typically contain values of the same type. Thus, it is natural to use the same editor for all cells in a row. Multi-editor rows can display data from several bound data fields. This allows multiple editors to be bound to a multi-editor row. For more information, see the Assigning Editors to Multi-Editor Rows topic. The In-place Editors topic describes the repository mechanism used to implement the in-place editing functionality.

Expanded Assign Editors at Design Time

To specify an in-place editor for a row, you need to create a specific repository item, add it to a vertical grid's internal or external repository and then assign it to a row via the RowProperties.RowEdit property.

At design time, the RowProperties.RowEdit property provides a dropdown window that lets you specify the repository item that defines the editor's type, and holds its properties and event handlers. You can assign an item stored within a repository or create a new repository item with default settings. If you create a new repository item, it's automatically added to the control's internal repository.

The example below shows how to use a CalcEdit editor for in-place editing within the Price row.

Follow the steps below.

  1. At design time, right-click the vertical grid and choose Run Designer from the context menu to invoke the VerticalGrid Designer.

  2. In the Designer's Rows page, select the rowPrice row. Click the dropdown button for the RowProperties.RowEdit property and select the CalcEdit item.

    This will create a RepositoryItemCalcEdit object, add it to the control's internal repository and assign it to the rowPrice row.

  3. Close the VerticalGrid Designer and run the application. If you now click a cell in the Price row, a CalcEdit will be invoked, allowing you to enter a cell value using a dropdown calculator.

Expanded Assign Editors at Runtime

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

Expanded See Also

How would you rate this topic?​​​​​​​