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
    [Expand]Binding to Data
    [Expand]Rows
    [Expand]Records
    [Collapse]Cells
      Obtaining and Setting Cell Values
    [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

Cells

There are three main building blocks of data representation in the vertical grids (VGridControl and PropertyGridControl). These are rows, records and cells. This topic explains the cell notion, provides information on how cells can be identified and how styles can be applied to them.

Expanded Cells Overview

Only editor rows and multi-editor rows can display data cells. Editor rows display a single cell in each record while multi-editor rows are capable of displaying several cells per record. Speaking more precisely, editor rows always contain a single row item. Multi-editor rows can hold a collection of row items. Each row item displays a single cell in each record.

When designing your applications, you might need to identify a particular cell. For instance, this could be needed when using the VGridControlBase.GetCellValue or VGridControlBase.SetCellValue methods. The following methods of cell identification are available:

  • Identifying a cell by the row object and record index. This method can only be used for cells that reside within editor rows.
  • Identifying a cell by the row object, record index and cell index. This method can be applied to both editor and multi-editor rows. However, it is likely to be used only for multi-editor rows since the cell index parameter is redundant for editor rows (it is always zero in this case).
  • Identifying a cell by the row properties object (representing the row item) and record index. This method is also applicable to editor and multi-editor rows.

The image below shows examples of data cells located within editor rows and multi-editor rows. It also illustrates the methods of identifying the cells listed above.

Expanded See Also

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