Xceed DataGrid for WPF v7.2 Documentation
IsMainColumn Property (ColumnBase)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > ColumnBase Class : IsMainColumn Property
Gets or sets a value indicating whether the column is a grid's main (primary) column.
Syntax
'Declaration
 
Public Overridable Property IsMainColumn As Boolean
'Usage
 
Dim instance As ColumnBase
Dim value As Boolean
 
instance.IsMainColumn = value
 
value = instance.IsMainColumn
public virtual bool IsMainColumn {get; set;}

Property Value

true if the column is a grid's main column; false otherwise. The main column can also be retrieved through the MainColumn property exposed by a grid's Columns collection.
Remarks

When a grid is in a card-view layout, the data displayed in a card's title is determined by a grid's main (primary) column. The content of the cell whose field name matches the field name of the main column will be displayed in the corresponding card's title. If left unmodified, the main column will be the first column that is added to a grid's Columns collection; however, the main column can be changed by setting a column's IsMainColumn property to true.

The CellContentTemplate of the main column is also used to display the default content of the scrolltip.

When a grid uses a TreeGridflowView, the column identified as being the "main" column (by setting this property to true) will display its data using a tree structure. In other words, in details the data of the cells associated with this column will be slightly indented.

Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ColumnBase Class
ColumnBase Members