Version

FixedRecordSortOrder Enumeration

Indicates the order of records that have been fixed thru the UI.
Syntax
'Declaration
 
Public Enum FixedRecordSortOrder 
   Inherits System.Enum
public enum FixedRecordSortOrder : System.Enum 
Members
MemberDescription
DefaultThe default resolves to Sorted.
FixOrderFixed records remain in the same order as they are fixed, even after the sorted fields have changed. Calling RefreshSort method on the FixedRowsCollection will resort the fixed records based on the sorted fields.
SortedFixed records are sorted when the user sorts fields. Note that however when the user fixes a record it is always added at the end of the fixed records. To insert it into the correct sort position call Record.RefreshSortPosition method on the record in the DataPresenterBase.RecordFixedLocationChanged event handler.
Example
The following code shows how to set various properties relating to record fixing.

Dim settings As FieldLayoutSettings = Me.xamDataGrid2.FieldLayoutSettings

' Allow fixing to the top or bottom of the display
'
' Note: fixing to the bottom is only supported at the root level so
'       any child records or records inside groups can only be
'       fixed to the top
settings.AllowRecordFixing = AllowRecordFixing.TopOrBottom

' Specify a limit to the number of records that can be fixed.
' Once the limit has been reached the record that was fixed first 
' will be bumped off the fixed list when a new record is fixed (FIFO).
'
' Note: This limit applies independently to the top and bottom so
'       that in Me case there could be up to 3 records fixed to
'       the top and 3 records fixed to the bottom at the same time.
settings.FixedRecordLimit = 3

' By setting FixedRecordSortOrder to 'FixOrder' the records will 
' be ordered such that the record that was fixed last will be
' closest to the scrollable records i.e. the last record fixed to
' the top will be at the bottom of the top fixed records. The order
' is reversed for bottom fixed records.
'
' Note: This order is maintained until the user performs a sort 
'       operation or the RefreshSort methd is called.
settings.FixedRecordSortOrder = FixedRecordSortOrder.FixOrder

' Setting FixedRecordUIType to 'Button' will display a FixedRecordButton
' in the RecordSelector of a DataRecord
settings.FixedRecordUIType = FixedRecordUIType.Button
FieldLayoutSettings settings = this.xamDataGrid2.FieldLayoutSettings;

// Allow fixing to the top or bottom of the display
//
// Note: fixing to the bottom is only supported at the root level so
//       any child records or records inside groups can only be
//       fixed to the top
settings.AllowRecordFixing = AllowRecordFixing.TopOrBottom;

// Specify a limit to the number of records that can be fixed.
// Once the limit has been reached the record that was fixed first 
// will be bumped off the fixed list when a new record is fixed (FIFO).
//
// Note: This limit applies independently to the top and bottom so
//       that in this case there could be up to 3 records fixed to
//       the top and 3 records fixed to the bottom at the same time.
settings.FixedRecordLimit = 3;

// By setting FixedRecordSortOrder to 'FixOrder' the records will 
// be ordered such that the record that was fixed last will be
// closest to the scrollable records i.e. the last record fixed to
// the top will be at the bottom of the top fixed records. The order
// is reversed for bottom fixed records.
//
// Note: This order is maintained until the user performs a sort 
//       operation or the RefreshSort methd is called.
settings.FixedRecordSortOrder = FixedRecordSortOrder.FixOrder;

// Setting FixedRecordUIType to 'Button' will display a FixedRecordButton
// in the RecordSelector of a DataRecord
settings.FixedRecordUIType = FixedRecordUIType.Button;


    
<!-- Set various properties on FieldLayoutSettings relating to record fixing.
     Note: fixing to the bottom is only supported at the root level so
           any child records or records inside groups can only be
           fixed to the top 
-->
    
<igDP:XamDataGrid x:Name="xamDataGrid2">
        
<igDP:XamDataGrid.FieldLayoutSettings>
            
<igDP:FieldLayoutSettings 
                
AllowRecordFixing="TopOrBottom"
                
FixedRecordLimit="3"
                
FixedRecordSortOrder="FixOrder"
                
FixedRecordUIType="Button"/>
        
</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