バージョン

IsPrimary プロパティ

これが主要なフィールドであるかどうかを取得または設定します
シンタックス
'宣言
 
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">

    
<igDP:XamDataGrid.FieldLayouts>

        
<!-- define a field layout that will match the data -->
        
<igDP:FieldLayout>
            
<igDP:FieldLayout.Settings>
                
<igDP:FieldLayoutSettings 
                        
HighlightPrimaryField="Highlight" 
                        
AutoArrangeMaxColumns="3" 
                        
AutoArrangePrimaryFieldReservation="ReserveFirstColumn"/>
            
</igDP:FieldLayout.Settings>

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

        
</igDP:FieldLayout>
    
</igDP:XamDataGrid.FieldLayouts>

</igDP:XamDataGrid>
参照