Version

AutoArrangeCells Property

Determines how Fields are laid out by default
Syntax
'Declaration
 
Public Property AutoArrangeCells As AutoArrangeCells
public AutoArrangeCells AutoArrangeCells {get; set;}
Example
The following example provides an explicit arrangement for the cells with a particular FieldLayout. The AutoArrangeCells is set to Never and then the Column, Row, ColumnSpan and RowSpan properties of the Field instances are set to the appropriate values. Note, the values for these properties are 0 based.
<igDP:XamDataGrid BindToSampleData="True">
    
    
<igDP:XamDataGrid.FieldLayouts>
        
        
<!-- define a field layout that will match the data -->
        
<igDP:FieldLayout>
            
            
<!-- initialize settings for this specific field layout -->
            
<igDP:FieldLayout.Settings>
                
<igDP:FieldLayoutSettings AutoArrangeCells="Never"/>
            
</igDP:FieldLayout.Settings>

            
<!-- define the fields for the field layout -->
            
<igDP:FieldLayout.Fields>
                
<igDP:Field Name="name" Column="0" Row="0" RowSpan="2" />
                
<igDP:Field Name="department" Column="1" Row="0" ColumnSpan="2"/>
                
<igDP:Field Name="salary" Column="1" Row="1"/>
                
<igDP:Field Name="email" Column="2" Row="1"/>
            
</igDP:FieldLayout.Fields>
            
        
</igDP:FieldLayout>
    
</igDP:XamDataGrid.FieldLayouts>

</igDP:XamDataGrid>
Requirements

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