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
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Binding to Data
   [Collapse]Grid View
    [Collapse]Columns and Card Fields
     [Expand]Customization Form
      Tutorial: Column Resizing
      Tutorial: Best Fit Option
      Tutorial: Auto Width Mode
      Tutorial: Fixed Columns
      Tutorial: Column Reordering
      Tutorial: Column Visibility
      Tutorial: Column Chooser API
      Column and Card Field Overview
      Data Cells
      Column Width Options - Auto-Width, Best Fit and Auto-Fill Column
      Column Visibility
      Creating Columns and Binding Them to Data Fields
      Fixed Columns
    [Expand]Rows and Cards
    [Expand]Row, Column and Cell Access API
    [Expand]Split Presentation
    [Expand]Cell Merging
    [Expand]Row Preview Sections
    [Expand]Scrolling
   [Expand]View Technology
   [Expand]Grouping
   [Expand]Sorting
   [Expand]Summaries
   [Expand]Data Editing
   [Expand]Filtering and Locating Rows
   [Expand]Focus and Selection Handling
   [Expand]Processing Rows
   [Expand]Formatting Cell Values
   [Expand]Master-Detail Relationships
   [Expand]Asynchronous Image Load
   [Expand]Export and Printing
   [Expand]Appearance and Conditional Formatting
   [Expand]Batch Modifications
   [Expand]Hit Information
   [Expand]Hints
   [Expand]Popup Menus
   [Expand]Saving and Restoring Layouts
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End-User Capabilities
    Included Components
  [Expand]Vertical Grid
  [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

Column Visibility

Available columns/card fields in all Views can be accessed from the View's ColumnView.Columns inherited collection. This collection stores both visible and hidden columns.

Use the GridColumn.Visible property to specify the visibility of columns. The GridColumn.VisibleIndex property controls the position of the column among other visible columns. Setting this property to 0 moves the column to the first position. If the new position is greater than or equal to the number of visible columns, the column will become the last visible column. The ColumnView.VisibleColumns collection allows you to access all visible columns.

An end-user can access all hidden columns using the Customization Form. If you do not want a specific column to appear in the Customization Form when it is hidden, you can clear the column's OptionsColumn.ShowInCustomizationForm option.

Expanded Banded Grid Views

Like in the GridView, the ColumnView.Columns collection in the BandedGridView and AdvBandedGridView is a place to store all available columns. However, to display a column in the banded grid views, that column needs to be assigned to a certain band. You can place a column into a band by setting the column's BandedGridColumn.OwnerBand property. The column's position within the band can be specified as follows.

Expanded Layout Views

In Layout Views, fields are arranged within a card using a specific layout. Each card field is internally described by two objects: a LayoutViewColumn and a LayoutViewField object. Column objects contain various display and behavior settings, while corresponding LayoutViewField objects define the layout of fields within a card (a field's position, indents, caption visibility and alignment, etc). To access a LayoutViewField object that corresponds to a column, use the LayoutViewColumn.LayoutViewField property. The methods and properties provided by LayoutViewField objects allow the field layout to be modified.

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