Log In
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Collapse]Vertical Grid
   [Expand]Product Information
   [Expand]ASPxVerticalGrid Getting Started
    [Expand]Binding to Data
    [Collapse]Data Representation Basics
       Data Rows
       Command Rows
      [Expand]Unbound Rows
       Fixed Rows
       Accessing Rows
       Creating Rows and Binding Them to Data Fields
    [Expand]Focus and Navigation
    [Expand]Data Editing
    [Expand]Data Shaping and Manipulation
    [Expand]Data Formatting
     Appearance Customization
    ASPxVerticalGrid Designer
   [Expand]Visual Elements
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[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]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Creating Rows and Binding Them to Data Fields

When ASPxVerticalGrid is bound to a data source, you need to create rows and bind them to data fields. There are two ways to implement this/

  • Automatically create rows for all data fields (default behavior).

    The ASPxVerticalGrid control automatically generates rows for all fields in the data source. The order of rows is the same as the order of fields in the data source. The ASPxVerticalGrid's ASPxVerticalGrid.Rows collection is populated at runtime. This collection is empty at design time.

    This behavior is controlled by the ASPxVerticalGrid.AutoGenerateRows property. This can be useful when the structure of the underlying data source is unknown (e.g., switching between data tables).

  • Create rows and bind them to data fields manually.

    Switch the ASPxVerticalGrid.AutoGenerateRows option to off. In this instance, you should manually create all the necessary rows, add them to the ASPxVerticalGrid.Rows collection and bind them to data source fields using their VerticalGridDataRow.FieldName property.

Expanded Creating and Binding Rows at Design Time

To access the ASPxVerticalGrid's rows collection, invoke the grid's Designer and select Rows.

In the Designer you can add, delete, access and customize row settings, and perform other common collection management tasks.

You can also change the row's type. To do this, right-click the required row to invoke the context menu. Select the 'Change To' menu item, and select the required row type.


The row's type can only be changed at design time.

Expanded Creating and Binding Rows at Runtime

The example below shows how to create a data row.

If grid rows are generated automatically (the ASPxVerticalGrid.AutoGenerateRows option is enabled), new rows can be added within the grid's DataBound event handler.

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