Xceed Toolkit Plus for WPF v4.6 Documentation
IsMainColumn Property


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

By default, 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.

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