Skip to main content

Data Editing

  • 3 minutes to read

The ExpressQuantumGrid gives you the ability to customize the View’s layout and enter data (for unbound (Banded) Table and Card Views only) at design time. For more information about the customizing the View’s layout at design time, see the View Layout topic. In this section we will consider the entry of data.

In order to enter data, use the “Layout and Data Editor” dialog. Click the “Edit Layout and Data…” item of the View’s context menu to invoke this dialog. Note that for Chart Views this dialog only lets you preview their appearance in a form. That is the following information relates to (Banded) Table and Card Views only.

Also you can select a specific View from the Views panel in the Component Editor and click the “Edit View Layout and Data…” button to invoke the corresponding dialog.

Obviously, you can enter data for existing grid items (columns or rows) but in order to do this, at least one grid item should exist at the moment the “Layout and Data Editor” is opened.

For non data-aware Views, the “Layout and Data Editor” dialog contains three buttons:

  • The “Columns customization” button (“Rows customization” and “Chart customization” in Card Views and Chart Views, respectively). Invokes the Customization Form, which allows you to temporarily hide specific grid items/bands and then restore them back to the View using drag and drop.

  • The Ok button. Applies any changes made to the View’s layout, passes the data entered in the editor to the View only when the corresponding checkbox is checked and closes the dialog.

  • The Cancel button. Discards any changes made to the layout and the data entered into the editor and closes the dialog.

and two checkboxes:

  • The “Save layout” checkbox. Specifies that layout changes should be saved and applied to the grid View when the Ok button is clicked. See the View Layout topic for more information about customizing the layout of Views.

  • The “Save data” checkbox. Specifies that data entered in the “Layout and Data Editor” should be saved and passed to the grid View when the Ok button is clicked. For data-aware Views, this checkbox is not displayed as data for these Views is acquired from the bound data sources.

When a clone of the grid View is displayed in the “Layout and Data Editor”, you can insert and delete records by pressing the Ins and Del keys, and modify cell values by selecting a specific cell and typing appropriate information into it.

Use a grid item’s DataBinding.ValueType property to specify the data type and the type of the default editor used to edit the item’s cell content.

When you have finished entering data into the “Layout and Data Editor” dialog and are ready to save it, make sure the “Save data” checkbox is checked and then click the Ok button. The data from the clone View will be passed to the grid View on the form which the dialog was called for.

See Also