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
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Collapse]Vertical Grid
    Overview - VerticalGrid
    Main Features
    [Expand]Binding to Data
    [Collapse]Data Representation Basics
       Data Rows
       Command Row
       Category Rows
       Unbound Rows
       Fixed Rows
    [Expand]Data Editing and Validation
    [Expand]Focus and Navigation
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report 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]Office File API
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Category Rows

The ASP.NET MVC VerticalGrid provides the capability to organize grid rows in logical groups (categories).

Expanded Category Row Type

Each category is implemented as a specific row type - MVCxVerticalGridCategoryRow.

A category row is a different kind of row - it is not designed to display data values directly (it does not support data operations such as sorting, grouping, etc.), but to contain other rows as children within its MVCxVerticalGridCategoryRow.Rows collection. It is possible to have a hierarchy of nested categories by placing another category row into a category row's MVCxVerticalGridCategoryRow.Rows collection. Note that you can store a data row and a category row at the same hierarchy level (i.e., within the same Rows collection).

The code sample below demonstrates how to use category rows to create a hierarchical grid layout.

Expanded Accessing Rows in a Hierarchical Layout

Defining categories within a VerticalGrid means having a hierarchical row structure. In this case, the VerticalGrid's VerticalGridSettings.Rows property only provides access to root level rows. To make it easier to traverse through all rows, the VerticalGrid introduces a specific ASPxVerticalGrid.AllRows (through MVCxVerticalGrid.AllRows) property. It provides access to a read-only collection containing all grid rows.

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