バージョン

CheckBoxAlignment プロパティ

ヘッダー キャプションに基づいて Header チェックボックスの位置を決定します。
シンタックス
'宣言
 
Public Property CheckBoxAlignment As HeaderCheckBoxAlignment
public HeaderCheckBoxAlignment CheckBoxAlignment {get; set;}
使用例
Private Sub SetupColumnWithHeaderCheckBox(ByRef column As UltraGridColumn) 
    
    'Return if no column is supplied. 
    If column Is Nothing Then 
        Exit Sub 
    End If 
    
    
    ' Set the Header's CheckBoxVisibility so it will display the CheckBox if a CheckEditor is used for the UltraGridColumn 
    ' 
    column.Header.CheckBoxVisibility = HeaderCheckBoxVisibility.WhenUsingCheckEditor 
    
    
    ' Set the Header's CheckBoxAlignment so the CheckBox will appear to the Right of the caption. 
    ' 
    column.Header.CheckBoxAlignment = HeaderCheckBoxAlignment.Right 
    
    
    ' Set the Header's CheckBoxSynchronization so all rows within the GridBand will be synchronized with the CheckBox 
    ' 
    column.Header.CheckBoxSynchronization = HeaderCheckBoxSynchronization.Band 

End Sub
private void SetupColumnWithHeaderCheckBox(UltraGridColumn column)
{

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


    // Set the Header's CheckBoxVisibility so it will display the CheckBox if a CheckEditor is used for the UltraGridColumn
    //
    column.Header.CheckBoxVisibility = HeaderCheckBoxVisibility.WhenUsingCheckEditor;


    // Set the Header's CheckBoxAlignment so the CheckBox will appear to the Right of the caption.
    //
    column.Header.CheckBoxAlignment = HeaderCheckBoxAlignment.Right;


    // Set the Header's CheckBoxSynchronization so all rows within the GridBand will be synchronized with the CheckBox
    //
    column.Header.CheckBoxSynchronization = HeaderCheckBoxSynchronization.Band;
}
参照