バージョン

HeaderCheckBoxAlignment プロパティ

ヘッダー キャプションに基づいて Header チェックボックスの位置を決定します。
シンタックス
'宣言
 
Public Property HeaderCheckBoxAlignment As HeaderCheckBoxAlignment
public HeaderCheckBoxAlignment HeaderCheckBoxAlignment {get; set;}
使用例
Private Sub SetupGrid(ByRef grid As UltraGrid) 

    'Return if no grid is supplied.
    '
    If grid Is Nothing Then 
        Exit Sub 
    End If 
    

    ' Set the HeaderCheckBoxVisibility so it will display the CheckBox whenever a CheckEditor is used within the UltraGridColumn 
    ' 
    grid.DisplayLayout.Override.HeaderCheckBoxVisibility = HeaderCheckBoxVisibility.WhenUsingCheckEditor 
    

    ' Set the HeaderCheckBoxAlignment so the CheckBox will appear to the Right of the caption. 
    ' 
    grid.DisplayLayout.Override.HeaderCheckBoxAlignment = HeaderCheckBoxAlignment.Right 
    

    ' Set the HeaderCheckBoxSynchronization so all rows within the GridBand will be synchronized with the CheckBox 
    ' 
    grid.DisplayLayout.Override.HeaderCheckBoxSynchronization = HeaderCheckBoxSynchronization.Band
 
End Sub
private void SetupGrid(UltraGrid grid)
{

    //Return if no grid is supplied.
    if (grid == null)
        return;


    // Set the HeaderCheckBoxVisibility so it will display the CheckBox whenever a CheckEditor is used within the UltraGridColumn
    //
    grid.DisplayLayout.Override.HeaderCheckBoxVisibility = HeaderCheckBoxVisibility.WhenUsingCheckEditor;


    // Set the HeaderCheckBoxAlignment so the CheckBox will appear to the Right of the caption.
    //
    grid.DisplayLayout.Override.HeaderCheckBoxAlignment = HeaderCheckBoxAlignment.Right;


    // Set the HeaderCheckBoxSynchronization so all rows within the GridBand will be synchronized with the CheckBox
    //
    grid.DisplayLayout.Override.HeaderCheckBoxSynchronization = HeaderCheckBoxSynchronization.Band;
}
参照