IsPrimary Property

Gets/sets whether this is the Primary Field
Public Property IsPrimary As Boolean
public bool IsPrimary {get; set;}
The following the properties related to the primary field. Unless the IsPrimary property is specifically set for a field, the first field in the FieldLayout will be the primary field. A primary field can have its position within the record handled specially using the AutoArrangePrimaryFieldReservation. In this example, the first column is reserved for this field so even though the fields will wrap to multiple rows within the record, the primary field will span all the rows and the column will be positioned starting with the second column.
The cells in the PrimaryField can be highlighted so that it is visually distinguished from the other cells in the record. This is done using the HighlightPrimaryField property.
The primary field will also be utilized as the ScrollTipField unless another Field within the FieldLayout has its IsScrollTipField set to true.
<igDP:XamDataGrid BindToSampleData="True">


<!-- define a field layout that will match the data -->

<igDP:Field Name="name" IsPrimary="True" />
<igDP:Field Name="department"/>
<igDP:Field Name="salary" />
<igDP:Field Name="email" IsScrollTipField="True"/>



Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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