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
    [Expand]Layouts
    [Collapse]Binding to Data
      Unbound Mode
      Unbound Rows
    [Expand]Rows
    [Expand]Records
    [Expand]Cells
    [Expand]In-place Editors
     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]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]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Binding to Data

This topic provides a brief overview of methods that can be used to bind a vertical grid control (VGridControl or PropertyGridControl) to data.

Expanded Binding the VGridControl

To bind a VGridControl control to a data source, use the VGridControl.DataSource and VGridControl.DataMember properties. It is possible to bind a control to a DataTable, DataView, IBindingList or IList objects. See the following topics for more information.


In bound mode, you can implement unbound rows - rows that are not bound to any data source field. These rows need to be populated with data manually. See Unbound Rows to learn more.

Expanded Binding the PropertyGridControl

To bind a PropertyGridControl to an object or an array of objects, use the PropertyGridControl.SelectedObject or PropertyGridControl.SelectedObjects property. After the object has been assigned to the control, its properties are retrieved as rows, according to the PropertyGridControl.AutoGenerateRows option.

Expanded Unbound Mode

The VGridControl control supports the unbound mode. In this mode a control is not bound to any data source (its VGridControl.DataSource and VGridControl.DataMember properties are not specified). Rows need to be added manually. In this mode, end-users can still edit rows. So, to improve the effectiveness of the application, you can assign editors to rows and initial edit values, if required. This method of using the vertical grid is similar to using a set of editors arranged in a specific manner (data cells), with labels corresponding to them (row header cells). See the following link for more information.

Note

The PropertyGridControl doesn't support the unbound mode. You must bind the control to an object or an array of objects via the PropertyGridControl.SelectedObject or PropertyGridControl.SelectedObjects property.

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