Version

DataRecordCellAreaGridTemplate Property

Gets/sets the panel template used to generate the cell area
Syntax
'Declaration
 
Public Property DataRecordCellAreaGridTemplate As ItemsPanelTemplate
public ItemsPanelTemplate DataRecordCellAreaGridTemplate {get; set;}
Remarks

Refer to the Arranging Cells within the Record topic in the Developer's Guide.

Example
The following sample demonstrates how to use the DataRecordCellAreaGridTemplate property to provide a custom grid panel to use when arranging the cells of a DataRecord. This particular examples set the width of the last column to * so that it fills the remaining area. Since the last column should autofil the available area, the AutoFit must be set to true. The AllowResize is set to false since the column cannot be resized when an explicit grid layout has been specified.
<igDP:XamDataGrid BindToSampleData="True" AutoFit="True">
    
    
<igDP:XamDataGrid.FieldSettings>
        
<igDP:FieldSettings AllowResize="False" />
    
</igDP:XamDataGrid.FieldSettings>

    
<igDP:XamDataGrid.FieldLayoutSettings>
        
<igDP:FieldLayoutSettings>
            
<igDP:FieldLayoutSettings.DataRecordCellAreaGridTemplate>
                
<ItemsPanelTemplate>
                    
<Grid>
                        
<Grid.ColumnDefinitions>
                            
<ColumnDefinition Width="120"/>
                            
<ColumnDefinition Width="120"/>
                            
<ColumnDefinition Width="120"/>
                            
<ColumnDefinition Width="*"/>
                        
</Grid.ColumnDefinitions>
                    
</Grid>
                
</ItemsPanelTemplate>
            
</igDP:FieldLayoutSettings.DataRecordCellAreaGridTemplate>
        
</igDP:FieldLayoutSettings>
    
</igDP:XamDataGrid.FieldLayoutSettings>

</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