Xceed DataGrid for WPF v7.2 Documentation
MainColumn Property (ColumnCollection)


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

The last column whose IsMainColumn property has been set to true will be considered as a grid's main column.

The title of the column that is identified as being a grid's main column will be displayed in the card titles when a grid is in a card-view layout.

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

ColumnCollection Class
ColumnCollection Members